org.esa.beam.util
Class IntMap
java.lang.Object
org.esa.beam.util.IntMap
- All Implemented Interfaces:
- Cloneable
public class IntMap
- extends Object
- implements Cloneable
|
Field Summary |
static int |
NULL
|
|
Constructor Summary |
IntMap()
|
IntMap(int tableOffset,
int bufferSize)
|
NULL
public static final int NULL
- See Also:
- Constant Field Values
IntMap
public IntMap()
IntMap
public IntMap(int tableOffset,
int bufferSize)
getSize
public int getSize()
putValue
public void putValue(int key,
int value)
removeValue
public void removeValue(int key)
getValue
public int getValue(int key)
getKeys
public int[] getKeys()
- Gets the array of keys in this map, sorted in ascending order.
- Returns:
- the array of keys in the map
getPairs
public int[][] getPairs()
- Gets the key/value pairs.
The array is sorted in ascending key order.
- Returns:
- the key/value pairs with
pairs[i] = {key, value}
getRanges
public int[][] getRanges()
- Gets the key/value ranges.
- Returns:
ranges = {{keyMin, keyMax}, {valueMin, valueMax}}
clone
public Object clone()
- Overrides:
clone in class Object
Copyright © 2002-2012 Brockmann Consult GmbH. All Rights Reserved.