| java.lang.Object com.sun.kvem.midp.pim.KeySortUtility
KeySortUtility | class KeySortUtility (Code) | | Class KeySortUtility contains static method "store" only.
See Also: store See Also: |
store | static void store(Vector keyList, Vector valueList, long key, Object value)(Code) | | Support method. Maintains a list, valueList, where each element in
the list has a corresponding key (of type Long) stored in keyList.
This method inserts "value" into "valueList" with the following
postconditions:
- keyList.size() == valueList.size()
- keyList[i] corresponds to valueList[i] (0 <= i < keyList.size())
- keyList is in ascending order of keys
- keyList contains key
- valueList contains value
- key corresponds to value
The following are preconditions:
- keyList.size() == valueList.size()
- keyList[i] corresponds to valueList[i] (0 <= i < keyList.size())
- keyList is in ascending order of keys
In order to maintain the arrays correctly, the objects passed as keyList
and valueList should only be modified by this method.
Preconditions are not verified by this method.
Parameters: keyList - array or property names Parameters: valueList - array of property values Parameters: key - identifier for this list Parameters: value - target object to store the list |
|
|