Package org.geotools.data.vpf.io
Class TripletId
- All Implemented Interfaces:
Serializable
Class TripletId.java is responsible for
- Author:
- Artur Hefczyc, Knut-Erik Johnsen, Project OneMap, Jeff Yutzler
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbytestatic intcalculateDataSize(byte definition) DescribecalculateDataSizemethod here.doublefloatintgetId()Returns the ID valueintReturns the Next IDintReturns the Tile IDintintValue()longshorttoString()
-
Constructor Details
-
TripletId
public TripletId(byte[] data) Creates a newTripletIdinstance.- Parameters:
data- abyte[]value
-
-
Method Details
-
toString
-
getId
public int getId()Returns the ID value- Returns:
- Returns the ID, the first number of the triplet
-
getTileId
public int getTileId()Returns the Tile ID- Returns:
- Returns the Tile ID, the second number of the triplet
-
getNextId
public int getNextId()Returns the Next ID- Returns:
- Returns the Next ID, the third number of the triplet
-
calculateDataSize
public static int calculateDataSize(byte definition) DescribecalculateDataSizemethod here.- Parameters:
definition- abytevalue indicating the details of the bytes- Returns:
- an
intvalue
-
doubleValue
public double doubleValue()- Specified by:
doubleValuein classNumber
-
floatValue
public float floatValue()- Specified by:
floatValuein classNumber
-
intValue
public int intValue() -
longValue
public long longValue() -
byteValue
public byte byteValue() -
shortValue
public short shortValue()- Overrides:
shortValuein classNumber
-