T1 - object to be used as a key in PairedCollectionT2 - object to be used as a value in PairedCollectionpublic interface IPairedCollection<T1,T2> extends ICollectionIterable<T2>, java.io.Serializable
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(T1 objT1)
The implementation of this method checks whether the specified key is present in the collection
|
T2 |
get(T1 objT1)
The implementation of this method retrieves the object of type specified at the time of instantiation of this library.
|
T1[] |
getKeys()
The implementation of this method gets all the keys in the collection.
|
void |
put(T1 objT1,
T2 objT2)
The implementation of this method add a key value pair in the paired collection
|
T2 |
remove(T1 objT1)
The implementation of this method removes the values associated with the given key.
|
int |
size()
The implementation of this method retrieves the size of the collection.
|
ICollectionIterator<T2> |
sortedIterator()
The implementation of this method returns iterator having data elements in sorted order.
|
iteratorICollectionIterator<T2> sortedIterator()
T2 get(T1 objT1)
objT1 - object specifying the key of PairedCollectionvoid put(T1 objT1, T2 objT2)
objT1 - object specifying the key of PairedCollectionobjT2 - object specifying the value corresponding to the key in the specified collectionboolean contains(T1 objT1)
objT1 - object specifying the key of PairedCollection .int size()
T2 remove(T1 objT1)
objT1 - - key whose mapping value is removed.T1[] getKeys()