|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.indiana.util.doublecollection.DoubleMap
public class DoubleMap
A DoubleCollection that uses a HashMap to store the doubles.
Field Summary | |
---|---|
protected java.util.HashMap |
values
|
Constructor Summary | |
---|---|
DoubleMap()
Creates a new instance of DoubleMap |
|
DoubleMap(int initialCapacity)
|
|
DoubleMap(java.util.Iterator keyIter,
double[] values)
|
|
DoubleMap(JDBCDriverInfo driverInfo,
RDBCollectionInfo collectionInfo,
RDBCollectionID collectionID)
Initalize an instance of DoubleMap that will basically reads its contents from the hashmaptable in the database. |
|
DoubleMap(java.lang.Object[] keys,
double[] values)
|
Method Summary | |
---|---|
void |
clear()
|
java.lang.Object |
clone()
|
boolean |
containsKey(java.lang.Object key)
|
boolean |
containsValue(double value)
|
java.util.Iterator |
entryIterator()
|
boolean |
equals(java.lang.Object other)
|
double |
getValue(java.lang.Object key)
returns 0 if weight is unknown! |
int |
hashCode()
|
boolean |
isEmpty()
|
void |
putValue(java.lang.Object key,
double value)
|
double |
removeValue(java.lang.Object key)
|
int |
size()
|
java.lang.String |
toString()
|
java.lang.String |
toString(java.util.Iterator keyIter)
|
void |
updateMemoryToDB(JDBCDriverInfo driverInfo,
RDBCollectionInfo collectionInfo,
RDBCollectionID collectionID)
|
boolean |
wasLastValueKnown()
returns true if the last value returned was actually unknown (and 0 was returned to indicate this) |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.util.HashMap values
Constructor Detail |
---|
public DoubleMap()
public DoubleMap(int initialCapacity)
public DoubleMap(java.lang.Object[] keys, double[] values)
public DoubleMap(java.util.Iterator keyIter, double[] values)
public DoubleMap(JDBCDriverInfo driverInfo, RDBCollectionInfo collectionInfo, RDBCollectionID collectionID)
driverInfo
- a JDBCDriverInfocollectionInfo
- a RDBCollectionInfocollectionID
- a RDBCollectionIDMethod Detail |
---|
public void updateMemoryToDB(JDBCDriverInfo driverInfo, RDBCollectionInfo collectionInfo, RDBCollectionID collectionID)
updateMemoryToDB
in interface DoubleCollection
public double getValue(java.lang.Object key)
DoubleCollection
getValue
in interface DoubleCollection
public boolean wasLastValueKnown()
DoubleCollection
wasLastValueKnown
in interface DoubleCollection
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(java.util.Iterator keyIter)
toString
in interface DoubleCollection
public boolean equals(java.lang.Object other)
equals
in interface DoubleCollection
equals
in class java.lang.Object
public java.lang.Object clone()
clone
in interface DoubleCollection
clone
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void putValue(java.lang.Object key, double value)
putValue
in interface DoubleCollection
public double removeValue(java.lang.Object key)
removeValue
in interface DoubleCollection
public void clear()
clear
in interface DoubleCollection
public boolean containsKey(java.lang.Object key)
containsKey
in interface DoubleCollection
public boolean containsValue(double value)
containsValue
in interface DoubleCollection
public java.util.Iterator entryIterator()
entryIterator
in interface DoubleCollection
public boolean isEmpty()
isEmpty
in interface DoubleCollection
public int size()
size
in interface DoubleCollection
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |