public abstract class AbstractCollectionResource<T extends Resource> extends AbstractResource implements CollectionResource<T>
properties
readLock, writeLock
Modifier | Constructor and Description |
---|---|
protected |
AbstractCollectionResource(InternalDataStore dataStore) |
protected |
AbstractCollectionResource(InternalDataStore dataStore,
Map<String,Object> properties) |
protected |
AbstractCollectionResource(InternalDataStore dataStore,
Map<String,Object> properties,
Map<String,Object> queryParams) |
Modifier and Type | Method and Description |
---|---|
Page<T> |
getCurrentPage() |
protected abstract Class<T> |
getItemType() |
String |
getNextPageUrl()
Returns a next page URL
|
boolean |
isEmpty() |
Iterator<T> |
iterator() |
T |
single()
This is just a convenience method to retrieve the single element expected to exist in this collection.
|
Spliterator<T> |
spliterator() |
Stream<T> |
stream()
Returns a sequential
Stream with this collection as its source. |
protected T |
toResource(Class<T> resourceClass,
Map<String,Object> properties) |
clear, containsKey, containsValue, createPropertyDescriptorMap, createPropertyDescriptorMap, entrySet, equals, get, getDataStore, getDeletedPropertyNames, getInternalProperties, getParamsFromHref, getProperty, getPropertyDescriptors, getPropertyNames, getResourceHref, getResourceListProperty, getResourceProperty, getUpdatedPropertyNames, hashCode, hasProperty, isDirty, isPrintableProperty, keySet, materialize, put, putAll, remove, setInternalProperties, setProperty, setProperty, setResourceHref, size, toString, values
getBoolean, getBoolean, getBooleanProperty, getCharArray, getDateProperty, getDoubleProperty, getDoubleProperty, getEnumListProperty, getEnumProperty, getEnumProperty, getInt, getInteger, getIntegerList, getIntProperty, getIntProperty, getListProperty, getListProperty, getMap, getMapProperty, getNonEmptyMap, getNullableBoolean, getNullableBooleanProperty, getNumber, getNumberList, getString, getString, getStringList, getStringProperty, setProperty, setProperty
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getResourceHref, setResourceHref
protected AbstractCollectionResource(InternalDataStore dataStore)
protected AbstractCollectionResource(InternalDataStore dataStore, Map<String,Object> properties)
public String getNextPageUrl()
CollectionResource
getNextPageUrl
in interface CollectionResource<T extends Resource>
null
if the current resource is the last one.public T single()
CollectionResource
This method is not backed by any specific property obtained from the backend, as already mentioned, this is a convenience method.
single
in interface CollectionResource<T extends Resource>
public boolean isEmpty()
isEmpty
in class AbstractResource
public Stream<T> stream()
CollectionResource
Stream
with this collection as its source.stream
in interface CollectionResource<T extends Resource>
Stream
over the elements in this resourcepublic Spliterator<T> spliterator()
spliterator
in interface Iterable<T extends Resource>
Copyright © 2017–2023 Okta. All rights reserved.