Package nu.validator.source
Class Location
java.lang.Object
nu.validator.source.Location
- All Implemented Interfaces:
java.lang.Cloneable
,java.lang.Comparable<Location>
public final class Location extends java.lang.Object implements java.lang.Comparable<Location>, java.lang.Cloneable
Immutable source location with zero-based indexes.
Cannot point to a line break.
- Version:
- $Id$
- Author:
- hsivonen
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfacejava.lang.Comparable<Location>
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equals
in classjava.lang.Object
- See Also:
Object.equals(java.lang.Object)
-
getColumn
public int getColumn()Returns the column.- Returns:
- the column
-
getLine
public int getLine()Returns the line.- Returns:
- the line
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
- See Also:
Object.hashCode()
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
- See Also:
Object.toString()
-