Package com.oracle.coherence.client
Class RemoteValues<K,V>
- java.lang.Object
-
- com.oracle.coherence.client.RemoteCollection<K,V,V>
-
- com.oracle.coherence.client.RemoteValues<K,V>
-
- Type Parameters:
K- the type of the underlying cache's keysV- the type of the underlying cache's values
- All Implemented Interfaces:
Iterable<V>,Collection<V>
public class RemoteValues<K,V> extends RemoteCollection<K,V,V> implements Collection<V>
A base class forNamedCachevalues collection implementations.This
Collectionimplementation allows removal but does not allow additions to the collection. MethodsRemoteCollection.add(Object)RemoteCollection.addAll(Collection)will throw anUnsupportedOperationException.Some methods in this class are intentionally inefficient partly due to their being a more efficient means to perform the same task using the underlying
NamedCacheand partly to ensure that using this class on a client will not cause all of the data from the underlyingNamedCacheto be pulled back to the caller in one result.- Since:
- 20.06
- Author:
- Jonathan Knight 2019.11.12
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classRemoteValues.ValuesIterator<K,V>AnIteratorto iterate over the cache values.-
Nested classes/interfaces inherited from class com.oracle.coherence.client.RemoteCollection
RemoteCollection.EntryAdvancer<K,V>, RemoteCollection.EntryResultMapEntry
-
-
Field Summary
-
Fields inherited from class com.oracle.coherence.client.RemoteCollection
f_client
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedRemoteValues(AsyncNamedCacheClient<K,V> client)Create aRemoteValues.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(Object value)Iterator<V>iterator()booleanremove(Object value)Object[]toArray()<T1> T1[]toArray(T1[] array)-
Methods inherited from class com.oracle.coherence.client.RemoteCollection
add, addAll, clear, containsAll, createEntryAdvancer, equals, getCache, hashCode, isEmpty, removeAll, retainAll, size, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
add, addAll, clear, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, removeIf, retainAll, size, spliterator, stream, toArray
-
-
-
-
Constructor Detail
-
RemoteValues
protected RemoteValues(AsyncNamedCacheClient<K,V> client)
Create aRemoteValues.- Parameters:
client- theAsyncNamedCacheClientthat this key set is linked to
-
-
Method Detail
-
contains
public boolean contains(Object value)
- Specified by:
containsin interfaceCollection<K>
-
remove
public boolean remove(Object value)
- Specified by:
removein interfaceCollection<K>
-
toArray
public Object[] toArray()
- Specified by:
toArrayin interfaceCollection<K>
-
toArray
public <T1> T1[] toArray(T1[] array)
- Specified by:
toArrayin interfaceCollection<K>
-
-