Package com.alachisoft.ncache.client
Class CacheCollection
- java.lang.Object
-
- com.alachisoft.ncache.client.CacheCollection
-
- All Implemented Interfaces:
java.lang.Iterable<com.alachisoft.ncache.client.internal.caching.CacheImpl>
public class CacheCollection extends java.lang.Object implements java.lang.Iterable<com.alachisoft.ncache.client.internal.caching.CacheImpl>Represents a collection of the caches initialized within the same application domain.
-
-
Constructor Summary
Constructors Constructor Description CacheCollection()Creates a CacheCollection instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Iterator<com.alachisoft.ncache.client.internal.caching.CacheImpl>iterator()Returns anIteratorwhich iterates over existent caches.intsize()The count of the caches contained in the collection.java.util.Collectionvalues()Gets all caches in the form of collection.
-
-
-
Method Detail
-
size
public int size()
The count of the caches contained in the collection.- Returns:
- The number of caches in collection.
-
values
public java.util.Collection values()
Gets all caches in the form of collection.- Returns:
- Collection of caches.
-
iterator
public java.util.Iterator<com.alachisoft.ncache.client.internal.caching.CacheImpl> iterator()
Returns anIteratorwhich iterates over existent caches.- Specified by:
iteratorin interfacejava.lang.Iterable<com.alachisoft.ncache.client.internal.caching.CacheImpl>- Returns:
- The iterator that iterates through caches.
-
-