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 boolean
equals(java.lang.Object obj)
DocumentSource
getDocumentSource()
java.lang.String
getString()
Returns the string representation of this element.int
hashCode()
java.lang.String
toString()
-
-
-
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.Element
Returns the string representation of this element. If the elements were generated originally from a string they should return the exact string again.- Specified by:
getString
in interfaceDocument.Element
- Returns:
- the string of this element.
-
getDocumentSource
public DocumentSource getDocumentSource()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-