Class AbstractHighwayMatrix.HighwayPtr
java.lang.Object
com._1c.g5.v8.dt.common.gef.drow2d.AbstractHighwayMatrix.HighwayPtr
- Enclosing class:
- AbstractHighwayMatrix
Wrapper on the
Highway
. Contains index of the highway in the highways list
for quick operation of the get index of element.
Overrides hashCode()
and equals()
for quick operations with hash map and hash set.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHighwayPtr
(Highway highway, int index) Create HighwayPtr using specifiedhighway
andindex
-
Method Summary
-
Field Details
-
highway
the wrapped element -
index
public int indexthe index on the highways list
-
-
Constructor Details
-
HighwayPtr
Create HighwayPtr using specifiedhighway
andindex
- Parameters:
highway
- - the highwayindex
- - the index
-
-
Method Details
-
hashCode
public int hashCode()Returns the index -
equals
Compares the indexes (after standart checks of thenull
and type). -
toString
Returns the string in the format: <index>: <highway.ToString()>
-