il2.util
Class DoubleMap

Object
  extended by DoubleMap

public class DoubleMap
extends Object


Constructor Summary
DoubleMap()
           
DoubleMap(DoubleMap map)
           
DoubleMap(int size)
           
DoubleMap(int[] k, double[] v)
           
DoubleMap(IntSet k, DoubleList v)
           
 
Method Summary
 double get(int key)
           
 double get(int key, double defaultValue)
           
 IntSet keys()
           
 void lock()
           
 boolean put(int key, double value)
           
 boolean remove(int key)
           
 int size()
           
 String toString()
           
 DoubleList values()
           
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DoubleMap

public DoubleMap()

DoubleMap

public DoubleMap(DoubleMap map)

DoubleMap

public DoubleMap(int size)

DoubleMap

public DoubleMap(IntSet k,
                 DoubleList v)

DoubleMap

public DoubleMap(int[] k,
                 double[] v)
Method Detail

put

public boolean put(int key,
                   double value)

remove

public boolean remove(int key)

get

public double get(int key)

get

public double get(int key,
                  double defaultValue)

size

public int size()

lock

public void lock()

keys

public IntSet keys()

values

public DoubleList values()

toString

public String toString()
Overrides:
toString in class Object


Copyright 2010 UCLA Automated Reasoning Group