Class AbstractSelectResults<T>
java.lang.Object
org.springframework.data.gemfire.repository.query.AbstractSelectResults<T>
- All Implemented Interfaces:
Iterable<T>
,Collection<T>
,SelectResults<T>
- Direct Known Subclasses:
PagedSelectResults
An abstract base class implementation of Apache Geode's
SelectResults
interface and Java Collection
interface, which delegates to, and is backed by a given, required SelectResults
instance.- Since:
- 2.4.0
- Author:
- John Blum
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractSelectResults
(SelectResults<T> selectResults) Constructs a new instance ofSelectResults
initialized with the given, requiredSelectResults
instance backing this base class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
addAll
(Collection<? extends T> results) asList()
asSet()
void
clear()
boolean
boolean
containsAll
(Collection<?> results) protected SelectResults<T>
Return the configured, underlyingSelectResults
used as the delegate backing thisSelectResults
implementation.boolean
isEmpty()
boolean
iterator()
int
occurrences
(T result) boolean
boolean
removeAll
(Collection<?> results) boolean
retainAll
(Collection<?> results) void
setElementType
(ObjectType objectType) int
size()
Object[]
toArray()
<E> E[]
toArray
(E[] array) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
Constructor Details
-
AbstractSelectResults
Constructs a new instance ofSelectResults
initialized with the given, requiredSelectResults
instance backing this base class.- Parameters:
selectResults
-SelectResults
delegate backing this implementation; must not be null.- Throws:
IllegalArgumentException
- ifSelectResults
is null.- See Also:
-
-
Method Details
-
getSelectResults
Return the configured, underlyingSelectResults
used as the delegate backing thisSelectResults
implementation.- Returns:
- the configured, underlying
SelectResults
. - See Also:
-
asList
- Specified by:
asList
in interfaceSelectResults<T>
-
asSet
- Specified by:
asSet
in interfaceSelectResults<T>
-
getCollectionType
- Specified by:
getCollectionType
in interfaceSelectResults<T>
-
isModifiable
public boolean isModifiable()- Specified by:
isModifiable
in interfaceSelectResults<T>
-
occurrences
- Specified by:
occurrences
in interfaceSelectResults<T>
-
setElementType
- Specified by:
setElementType
in interfaceSelectResults<T>
-
add
- Specified by:
add
in interfaceCollection<T>
-
addAll
- Specified by:
addAll
in interfaceCollection<T>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<T>
-
contains
- Specified by:
contains
in interfaceCollection<T>
-
containsAll
- Specified by:
containsAll
in interfaceCollection<T>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection<T>
-
iterator
-
remove
- Specified by:
remove
in interfaceCollection<T>
-
removeAll
- Specified by:
removeAll
in interfaceCollection<T>
-
retainAll
- Specified by:
retainAll
in interfaceCollection<T>
-
size
public int size()- Specified by:
size
in interfaceCollection<T>
-
toArray
- Specified by:
toArray
in interfaceCollection<T>
-
toArray
public <E> E[] toArray(E[] array) - Specified by:
toArray
in interfaceCollection<T>
-