org.geotools.data.vpf.io
Class TripletId

java.lang.Object
  extended by java.lang.Number
      extended by org.geotools.data.vpf.io.TripletId
All Implemented Interfaces:
java.io.Serializable

public class TripletId
extends java.lang.Number

Class TripletId.java is responsible for

Version:
1.0.0
Author:
Artur Hefczyc, Knut-Erik Johnsen, Project OneMap, Jeff Yutzler
See Also:
Serialized Form

Constructor Summary
TripletId(byte[] data)
          Creates a new TripletId instance.
 
Method Summary
 byte byteValue()
           
static int calculateDataSize(byte definition)
          Describe calculateDataSize method here.
 double doubleValue()
           
 float floatValue()
           
 int getId()
          Returns the ID value
 int getNextId()
          Returns the Next ID
 int getTileId()
          Returns the Tile ID
 int intValue()
           
 long longValue()
           
 short shortValue()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TripletId

public TripletId(byte[] data)
Creates a new TripletId instance.

Parameters:
data - a byte[] value
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

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)
Describe calculateDataSize method here.

Parameters:
definition - a byte value indicating the details of the bytes
Returns:
an int value

doubleValue

public double doubleValue()
Specified by:
doubleValue in class java.lang.Number

floatValue

public float floatValue()
Specified by:
floatValue in class java.lang.Number

intValue

public int intValue()
Specified by:
intValue in class java.lang.Number

longValue

public long longValue()
Specified by:
longValue in class java.lang.Number

byteValue

public byte byteValue()
Overrides:
byteValue in class java.lang.Number

shortValue

public short shortValue()
Overrides:
shortValue in class java.lang.Number


Copyright © 1996-2010 Geotools. All Rights Reserved.