Package com.day.util.diff
Class WordsElementsFactory.WordElement
- java.lang.Object
-
- com.day.util.diff.WordsElementsFactory.WordElement
-
- All Implemented Interfaces:
Document.Element
- Enclosing class:
- WordsElementsFactory
public static class WordsElementsFactory.WordElement extends java.lang.Object implements Document.Element
-
-
Constructor Summary
Constructors Constructor Description WordElement(DocumentSource source, java.lang.String word, java.lang.String gutter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)DocumentSourcegetDocumentSource()java.lang.StringgetString()Returns the string representation of this element.inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
WordElement
public WordElement(DocumentSource source, java.lang.String word, java.lang.String gutter)
-
-
Method Detail
-
getString
public java.lang.String getString()
Description copied from interface:Document.ElementReturns the string representation of this element. If the elements were generated originally from a string they should return the exact string again.- Specified by:
getStringin interfaceDocument.Element- Returns:
- the string of this element.
-
getDocumentSource
public DocumentSource getDocumentSource()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-