|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.util.Base
com.tangosol.util.RestrictedCollections
public class RestrictedCollections
A collection of Collection implementation classes that limit the data type.
Nested Class Summary | |
---|---|
static class |
RestrictedCollections.RestrictedCollection A restricted Collection that requires its contents to be of a specified class. |
static class |
RestrictedCollections.RestrictedEntrySet A restricted Collection that requires its contents to be of a specified class. |
static class |
RestrictedCollections.RestrictedList A restricted List that requires its contents to be of a specified class. |
static class |
RestrictedCollections.RestrictedListIterator A restricted ListIterator that requires its contents to be of a specified class. |
static class |
RestrictedCollections.RestrictedMap A restricted Map that requires its keys and values to be of specified classes. |
static class |
RestrictedCollections.RestrictedSet A restricted Set that requires its contents to be of a specified class. |
static class |
RestrictedCollections.RestrictedSortedMap A restricted SortedMap that requires its keys and values to be of specified classes. |
static class |
RestrictedCollections.RestrictedSortedSet A restricted Set that requires its contents to be of a specified class. |
Method Summary | |
---|---|
static Collection |
getCollection(Collection col, Class clz) Returns a restricted instance of Collection. |
static Set |
getEntrySet(Set set, Class clzKey, Class clzVal) Returns a restricted instance of Set that holds Entry objects for a RestrictedMap. |
static List |
getList(List list, Class clz) Returns a restricted instance of List. |
static ListIterator |
getListIterator(ListIterator iter, Class clz) Returns a restricted instance of ListIterator. |
static Map |
getMap(Map map, Class clzKey, Class clzVal) Returns a restricted instance of Map. |
static Set |
getSet(Set set, Class clz) Returns a restricted instance of Set. |
static SortedMap |
getSortedMap(SortedMap map, Class clzKey, Class clzVal) Returns a restricted instance of SortedMap. |
static SortedSet |
getSortedSet(SortedSet set, Class clz) Returns a restricted instance of SortedSet. |
Method Detail |
---|
public static Collection getCollection(Collection col, Class clz)
col
- the underlying Collectionclz
- the class of objects that may be stored in the Collectionpublic static Set getSet(Set set, Class clz)
set
- the underlying Setclz
- the class of objects that may be stored in the Setpublic static SortedSet getSortedSet(SortedSet set, Class clz)
set
- the underlying SortedSetclz
- the class of objects that may be stored in the SortedSetpublic static List getList(List list, Class clz)
list
- the underlying Listclz
- the class of objects that may be stored in the Listpublic static ListIterator getListIterator(ListIterator iter, Class clz)
iter
- the underlying ListIteratorclz
- the class of objects that may be stored in the Listpublic static Map getMap(Map map, Class clzKey, Class clzVal)
map
- the underlying MapclzKey
- the class of keys that may be stored in the MapclzVal
- the class of values that may be stored in the Mappublic static SortedMap getSortedMap(SortedMap map, Class clzKey, Class clzVal)
map
- the underlying SortedMapclzKey
- the class of keys that may be stored in the SortedMapclzVal
- the class of values that may be stored in the SortedMappublic static Set getEntrySet(Set set, Class clzKey, Class clzVal)
set
- the underlying Entry SetclzKey
- the class of keys that may be stored in the MapclzVal
- the class of values that may be stored in the Map
|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |