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
    boolean equals​(java.lang.Object obj)  
    int hashCode()  
    int lineNumber()
    Number of the Line, starting at 1.
    void setLineNumber​(int lineNumber)  
    java.lang.String toString()
    This does not return the lines content only!

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface de.tum.in.test.api.io.Line

    contentEquals, isComplete, text
  • Constructor Details

  • Method Details

    • toString

      public java.lang.String toString()
      Description copied from interface: Line
      This does not return the lines content only! Use Line.text() for that purpose.
      Specified by:
      toString in interface Line
      Overrides:
      toString in class java.lang.Object
    • equals

      public boolean equals​(java.lang.Object obj)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • lineNumber

      public final int lineNumber()
      Description copied from interface: Line
      Number of the Line, starting at 1.
      Specified by:
      lineNumber in interface Line
      Returns:
      the line number or -1, if none is set
    • setLineNumber

      public final void setLineNumber​(int lineNumber)