/** * Indicates whether some other object is "equal to" this one as defined by the Object equals() method. * <p> * @param other he reference object with which to compare. * @return <b>true</b> if 'this' object is equal to the 'other' object. * */ public boolean equals(Object other) { if (other == null) { return false; } // can't use foreign markup in equals, due to JDOM equals impl Object fm = getForeignMarkup(); setForeignMarkup(((Item)other).getForeignMarkup()); boolean ret = _objBean.equals(other); // restore foreign markup setForeignMarkup(fm); return ret; }
/** * Indicates whether some other object is "equal to" this one as defined by the Object equals() method. * <p> * @param other he reference object with which to compare. * @return <b>true</b> if 'this' object is equal to the 'other' object. * */ @Override public boolean equals(Object other) { if (other == null || !(other instanceof Item)) { return false; } // can't use foreign markup in equals, due to JDOM equals impl Object fm = getForeignMarkup(); setForeignMarkup(((Item)other).getForeignMarkup()); boolean ret = _objBean.equals(other); // restore foreign markup setForeignMarkup(fm); return ret; }
/** * Indicates whether some other object is "equal to" this one as defined by the Object equals() method. * <p> * @param other he reference object with which to compare. * @return <b>true</b> if 'this' object is equal to the 'other' object. * */ public boolean equals(Object other) { if (other == null) { return false; } // can't use foreign markup in equals, due to JDOM equals impl Object fm = getForeignMarkup(); setForeignMarkup(((Item)other).getForeignMarkup()); boolean ret = _objBean.equals(other); // restore foreign markup setForeignMarkup(fm); return ret; }
/** * Indicates whether some other object is "equal to" this one as defined by the Object equals() method. * <p> * @param other he reference object with which to compare. * @return <b>true</b> if 'this' object is equal to the 'other' object. * */ @Override public boolean equals(Object other) { if (other == null || !(other instanceof Item)) { return false; } // can't use foreign markup in equals, due to JDOM equals impl Object fm = getForeignMarkup(); setForeignMarkup(((Item)other).getForeignMarkup()); boolean ret = _objBean.equals(other); // restore foreign markup setForeignMarkup(fm); return ret; }
item.setForeignMarkup(foreignMarkup);
item.setForeignMarkup(foreignMarkup);
protected Item createRSSItem(SyndEntry sEntry) { Item item = new Item(); item.setModules(ModuleUtils.cloneModules(sEntry.getModules())); item.setTitle(sEntry.getTitle()); item.setLink(sEntry.getLink()); if (((List)sEntry.getForeignMarkup()).size() > 0) { item.setForeignMarkup(sEntry.getForeignMarkup()); } String uri = sEntry.getUri(); if (uri != null) { item.setUri(uri); } return item; }
protected Item createRSSItem(SyndEntry sEntry) { Item item = new Item(); item.setModules(ModuleUtils.cloneModules(sEntry.getModules())); item.setTitle(sEntry.getTitle()); item.setLink(sEntry.getLink()); if (((List)sEntry.getForeignMarkup()).size() > 0) { item.setForeignMarkup(sEntry.getForeignMarkup()); } String uri = sEntry.getUri(); if (uri != null) { item.setUri(uri); } return item; }
protected Item createRSSItem(SyndEntry sEntry) { Item item = new Item(); item.setModules(ModuleUtils.cloneModules(sEntry.getModules())); item.setTitle(sEntry.getTitle()); item.setLink(sEntry.getLink()); if (((List)sEntry.getForeignMarkup()).size() > 0) { item.setForeignMarkup(sEntry.getForeignMarkup()); } String uri = sEntry.getUri(); if (uri != null) { item.setUri(uri); } return item; }
item.setForeignMarkup(foreignMarkup);
protected Item createRSSItem(SyndEntry sEntry) { Item item = new Item(); item.setModules(ModuleUtils.cloneModules(sEntry.getModules())); item.setTitle(sEntry.getTitle()); item.setLink(sEntry.getLink()); if (((List)sEntry.getForeignMarkup()).size() > 0) { item.setForeignMarkup(sEntry.getForeignMarkup()); } String uri = sEntry.getUri(); if (uri != null) { item.setUri(uri); } return item; }
item.setForeignMarkup(foreignMarkup);