Package net.sf.jasperreports.engine
Interface Deduplicable
- All Known Implementing Classes:
ChartTemplateImage,JRBaseBoxBottomPen,JRBaseBoxLeftPen,JRBaseBoxPen,JRBaseBoxRightPen,JRBaseBoxTopPen,JRBaseConditionalStyle,JRBaseLineBox,JRBaseParagraph,JRBasePen,JRBaseStyle,JRDesignConditionalStyle,JRDesignStyle,JRTemplateElement,JRTemplateEllipse,JRTemplateFrame,JRTemplateGenericElement,JRTemplateGraphicElement,JRTemplateImage,JRTemplateLine,JRTemplateRectangle,JRTemplateText,JRVirtualPrintPage.JRIdHolderTemplateElement,TabStop
public interface Deduplicable
Interface implemented by objects that can be deduplicated by detecting
previously created identical instances.
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionintReturns a hash code to be used for the deduplicate map.booleanisIdentical(Object object) Determines if this instance is identical to another object.
-
Method Details
-
getHashCode
int getHashCode()Returns a hash code to be used for the deduplicate map. The returned hash code should be consitent wiwhisIdentical(Object), i.e. if two objects are identical they should have the same hash code.- Returns:
- deduplication hash code
-
isIdentical
Determines if this instance is identical to another object.- Parameters:
object- the object to compare with this instance- Returns:
trueif the two objects are identical and can be deduplicated
-