T1 - - object to be used as a key in PairedCollectionT2 - - object to be used as a value in PairedCollectionpublic interface IMultiValuedPairedCollection<T1,T2> extends ICollectionIterable<T2>
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(T1 objT1)
Check whether the specified key is present in the collection
|
ISingleCollection<T2> |
get(T1 objT1)
Return the object of type specified at the time of instantiation of this library.
|
ISingleCollection<T2> |
getAllValues()
Retrieves All values present in the collection
|
void |
put(T1 objT1,
ISingleCollection<T2> objT2)
Added key and collection of values repsective to that key in the paired collection
|
void |
put(T1 objT1,
T2 objT2)
Added key and value in the paired collection
|
void |
remove(T1 objT1)
Implementation of this method provides a mechanism to remove a key value pair from collection
|
void |
remove(T1 objT1,
T2 objT2)
Implementation of this method provides a mechanism to remove a specified value present for specified
key and removes key to if no values present for that key.
|
iteratorISingleCollection<T2> get(T1 objT1)
objT1 - object specifying the key of MultiValuedPairedCollectionvoid put(T1 objT1, T2 objT2)
objT1 - object specifying the key of MultiValuedPairedCollectionobjT2 - object specifying the value corresponding to the key in
the specified collectionvoid put(T1 objT1, ISingleCollection<T2> objT2)
objT1 - object specifying the key of MultiValuedPairedCollectionobjT2 - object specifying the value corresponding to the key in
the specified collectionvoid remove(T1 objT1)
objT1 - This parameter specifies the key whose corresponding value to removevoid remove(T1 objT1, T2 objT2)
objT1 - This parameter specifies the key whose corresponding value to removeobjT2 - object specifying the value corresponding to the key in
the specified collectionboolean contains(T1 objT1)
objT1 - object specifying the key of PairedCollectionISingleCollection<T2> getAllValues()