org.openstreetmap.osmosis.core.util
Class LongAsInt

java.lang.Object
  extended by org.openstreetmap.osmosis.core.util.LongAsInt

public final class LongAsInt
extends java.lang.Object

Contains utility methods supporting storage of longs as integers. This is only useful while OSM ids remain below Integer.MAX_VALUE.

Author:
Brett Henderson

Method Summary
static int longToInt(long value)
          Converts the specified long to an int and verifies that it is legal.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

longToInt

public static int longToInt(long value)
Converts the specified long to an int and verifies that it is legal.

Parameters:
value - The identifier to be converted.
Returns:
The integer representation of the id.