Class LinePosition
java.lang.Object
org.variantsync.boosting.position.Position
org.variantsync.boosting.position.LinePosition
- All Implemented Interfaces:
 Serializable
Represents a position in a file with line and column numbers.
- See Also:
 
- 
Constructor Summary
ConstructorsConstructorDescriptionLinePosition(String filePosition, int lineNumber, int columnNumber) Constructs a LinePosition object with the specified file position, line number, and column number. - 
Method Summary
Modifier and TypeMethodDescriptionintReturns the column number of the line.booleanCompares this LinePosition object to the specified object for equality.filePath()Returns the file path of the file that contains the line.inthashCode()Returns a hash code value for the LinePosition object.intReturns the line number of the line.String[]Returns a serialized representation of the LinePosition object.Methods inherited from class org.variantsync.boosting.position.Position
fromSerializedPosition 
- 
Constructor Details
- 
LinePosition
Constructs a LinePosition object with the specified file position, line number, and column number.- Parameters:
 filePosition- the file positionlineNumber- the line numbercolumnNumber- the column number
 
 - 
 - 
Method Details
- 
equals
Compares this LinePosition object to the specified object for equality. - 
hashCode
public int hashCode()Returns a hash code value for the LinePosition object. - 
serializedPosition
Returns a serialized representation of the LinePosition object.- Specified by:
 serializedPositionin classPosition- Returns:
 - an array of strings representing the serialized position
 
 - 
filePath
Returns the file path of the file that contains the line. - 
lineNumber
public int lineNumber()Returns the line number of the line.- Specified by:
 lineNumberin classPosition- Returns:
 - the line number
 
 - 
columnNumber
public int columnNumber()Returns the column number of the line.- Specified by:
 columnNumberin classPosition- Returns:
 - the column number
 
 
 -