Package com.day.util.diff
Class LineElementsFactory.StringElement
- java.lang.Object
 - 
- com.day.util.diff.LineElementsFactory.StringElement
 
 
- 
- All Implemented Interfaces:
 Document.AnnotatedElement,Document.Element
- Enclosing class:
 - LineElementsFactory
 
public static class LineElementsFactory.StringElement extends java.lang.Object implements Document.AnnotatedElement
An element that is based on a string todo: create non-annotated varian 
- 
- 
Constructor Summary
Constructors Constructor Description StringElement(DocumentSource source, java.lang.String string) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)DocumentSourcegetDocumentSource()Returns the document source of this element.java.lang.StringgetString()Returns the string representation of this element.inthashCode()java.lang.StringtoString() 
 - 
 
- 
- 
Constructor Detail
- 
StringElement
public StringElement(DocumentSource source, java.lang.String string)
 
 - 
 
- 
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()
Description copied from interface:Document.AnnotatedElementReturns the document source of this element.- Specified by:
 getDocumentSourcein interfaceDocument.AnnotatedElement- Returns:
 - the source of this element.
 
 
- 
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
 
 - 
 
 -