public static final class MultiLinePoint.Line
extends java.lang.Object
MultiLinePoint.shared coordinates.
Immutable class that also stores the LineLocation of the MultiLinePoint.shared
coordinates relative to the indicated line segment.| Modifier and Type | Field and Description |
|---|---|
int |
index
The input index of a line segment intersecting at the
MultiLinePoint.shared coordinates. |
LineLocation |
location
The location of the
MultiLinePoint.shared coordinates relative to the line segment at index. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Compares the specified
Object to this MultiLinePoint.Line instance. |
int |
hashCode()
Returns a hash code for the
MultiLinePoint.Line. |
java.lang.String |
toString()
Returns a
String representation of the MultiLinePoint.Line. |
public final int index
MultiLinePoint.shared coordinates.
Holds a zero-based index relative to the original input collection, indicating
one of the line segments that intersect at the MultiLinePoint.shared coordinates.public final LineLocation location
MultiLinePoint.shared coordinates relative to the line segment at index.
Holds a LineLocation value specifying the location of the MultiLinePoint.shared
coordinates relative to the input line segment indicated by index.
Since all line segments of a MultiLinePoint are guaranteed to intersect at the
MultiLinePoint.shared coordinates, each location is either LineLocation.START,
LineLocation.BETWEEN, or LineLocation.END.
public boolean equals(java.lang.Object obj)
Object to this MultiLinePoint.Line instance.equals in class java.lang.Objectobj - the Object to compare to this instancetrue if obj is not null and a MultiLinePoint.Line instance whose
index and location equal those of this instance, else falsepublic int hashCode()
MultiLinePoint.Line.hashCode in class java.lang.ObjectInteger hash code for the MultiLinePoint.Linepublic java.lang.String toString()
String representation of the MultiLinePoint.Line.