Class AbstractHighwayMatrix.HighwayPtr
- java.lang.Object
-
- com._1c.g5.v8.dt.common.gef.drow2d.AbstractHighwayMatrix.HighwayPtr
-
- Enclosing class:
- AbstractHighwayMatrix
protected static class AbstractHighwayMatrix.HighwayPtr extends Object
Wrapper on theHighway
. Contains index of the highway in the highways list for quick operation of the get index of element. OverrideshashCode()
andequals()
for quick operations with hash map and hash set.
-
-
Constructor Summary
Constructors Constructor Description HighwayPtr(Highway highway, int index)
Create HighwayPtr using specifiedhighway
andindex
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Compares the indexes (after standart checks of thenull
and type).int
hashCode()
Returns the indexString
toString()
Returns the string in the format: <index>: <highway.ToString()>
-
-
-
Field Detail
-
highway
public final Highway highway
the wrapped element
-
index
public int index
the index on the highways list
-
-
Constructor Detail
-
HighwayPtr
public HighwayPtr(Highway highway, int index)
Create HighwayPtr using specifiedhighway
andindex
- Parameters:
highway
- - the highwayindex
- - the index
-
-
Method Detail
-
hashCode
public int hashCode()
Returns the index
-
equals
public boolean equals(Object obj)
Compares the indexes (after standart checks of thenull
and type).
-
-