public abstract class AssetConnections extends AssetPropertyIteratorBase implements Iterator<ConnectionProperties>
pagingIteratorparentAsset| Constructor and Description |
|---|
AssetConnections(AssetDescriptor parentAsset,
AssetConnections template)
Copy/clone constructor.
|
AssetConnections(AssetDescriptor parentAsset,
int totalElementCount,
int maxCacheSize)
Typical Constructor creates an iterator with the supplied list of elements.
|
| Modifier and Type | Method and Description |
|---|---|
protected AssetPropertyBase |
cloneElement(AssetDescriptor parentAsset,
AssetPropertyBase template)
Provides a concrete implementation of cloneElement for the specific iterator type.
|
protected abstract AssetConnections |
cloneIterator(AssetDescriptor parentAsset)
Clones this iterator.
|
boolean |
hasNext()
The iterator can only be used once to step through the elements.
|
ConnectionProperties |
next()
Return the next element in the iteration.
|
void |
remove()
Remove the current element in the iterator.
|
String |
toString()
Standard toString method.
|
getCachedList, getElementCountequals, getParentAsset, getParentAssetName, getParentAssetTypeNamehashCodeclone, finalize, getClass, notify, notifyAll, wait, wait, waitforEachRemainingpublic AssetConnections(AssetDescriptor parentAsset, int totalElementCount, int maxCacheSize)
parentAsset - descriptor of parent assettotalElementCount - the total number of elements to process. A negative value is converted to 0.maxCacheSize - maximum number of elements that should be retrieved from the property server and
cached in the element list at any one time. If a number less than one is supplied, 1 is used.public AssetConnections(AssetDescriptor parentAsset, AssetConnections template)
parentAsset - descriptor of parent assettemplate - type-specific iterator to copy; null to create an empty iteratorprotected AssetPropertyBase cloneElement(AssetDescriptor parentAsset, AssetPropertyBase template)
cloneElement in class AssetPropertyIteratorBaseparentAsset - descriptor of parent assettemplate - object to cloneprotected abstract AssetConnections cloneIterator(AssetDescriptor parentAsset)
parentAsset - descriptor of parent assetpublic boolean hasNext()
hasNext in interface Iterator<ConnectionProperties>public ConnectionProperties next()
next in interface Iterator<ConnectionProperties>public void remove()
remove in interface Iterator<ConnectionProperties>public String toString()
toString in class AssetPropertyElementBaseCopyright © 2018–2020 ODPi. All rights reserved.