Package de.tum.in.test.api.io
Class AbstractLine
java.lang.Object
de.tum.in.test.api.io.AbstractLine
- All Implemented Interfaces:
Line
public abstract class AbstractLine extends java.lang.Object implements Line
-
Constructor Summary
Constructors Constructor Description AbstractLine() -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object obj)inthashCode()intlineNumber()Number of the Line, starting at 1.voidsetLineNumber(int lineNumber)java.lang.StringtoString()This does not return the lines content only!
-
Constructor Details
-
AbstractLine
public AbstractLine()
-
-
Method Details
-
toString
public java.lang.String toString()Description copied from interface:LineThis does not return the lines content only! UseLine.text()for that purpose. -
equals
public boolean equals(java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
lineNumber
public final int lineNumber()Description copied from interface:LineNumber of the Line, starting at 1.- Specified by:
lineNumberin interfaceLine- Returns:
- the line number or -1, if none is set
-
setLineNumber
public final void setLineNumber(int lineNumber)
-