|
Side of Software Dated Collections Library 2.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public static interface DatedMap.Entry<K,V,D>
An entry in a dated map. This interface is an adaptation of the interface
java.util.Map.Entry. The only difference is that the
setValue method has
been enhanced to take a date range.
DatedMap.entrySet()| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object object)
Indicates if this entry is equivalent to the specified object. |
K |
getKey()
Returns this entry's key. |
V |
getValue()
Returns this entry's value. |
int |
hashCode()
Returns the hash code value for this entry. |
V |
setValue(V value,
D from,
D to)
Sets the value to be associated with the key in the specified date range (optional operation). |
| Method Detail |
|---|
boolean equals(java.lang.Object object)
equals method.
equals in class java.lang.Objectobject - object to test for equality to this entry
true if this entry is equal to the specified objectK getKey()
V getValue()
int hashCode()
hashCode in class java.lang.Object
V setValue(V value,
D from,
D to)
value - object to map to this entry's keyfrom - starting date (inclusive) at which to map to valueto - ending date (exclusive) to map to value
java.lang.ClassCastException - if the underlying type of value
prevents it from being stored in this dated map
DateOutOfRangeException - if the specified range does not include
the date at which this entry is being viewed or if the underlying
map is not static throughout the specified range
java.lang.IllegalArgumentException - if from does not precede to
or if some property of value prevents it from being stored in this dated map
java.lang.NullPointerException - if from or to is null
or if value is null and this dated collection
cannot hold null values
java.lang.UnsupportedOperationException - if this entry does not support setValue
|
Side of Software Dated Collections Library 2.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||