public class IndirectListContainerPolicy extends InterfaceContainerPolicy
ContainerPolicy
,
Serialized FormcloneMethod, containerClass, containerClassName
constructor, elementDescriptor
Constructor and Description |
---|
IndirectListContainerPolicy()
INTERNAL:
Construct a new policy.
|
IndirectListContainerPolicy(Class containerClass)
INTERNAL:
Construct a new policy for the specified class.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
addInto(Object key,
Object element,
Object container)
INTERNAL:
Add element into the container.
|
void |
addIntoWithOrder(Vector indexes,
Hashtable elements,
Object container)
INTERNAL:
Add element into a container which implements the Collection interface.
|
void |
clear(Object container)
INTERNAL:
Remove all the elements from container.
|
protected boolean |
contains(Object element,
Object container)
INTERNAL:
Return the true if element exists in container.
|
Class |
getInterfaceType() |
boolean |
hasNext(Object iterator)
INTERNAL:
Return whether the iterator has more objects,
|
boolean |
hasOrder()
INTERNAL:
Returns true if the collection has order
|
Object |
iteratorFor(Object container)
INTERNAL:
Return an Iterator for the given container.
|
protected Object |
next(Object iterator)
INTERNAL:
Return the next object on the queue.
|
protected boolean |
removeFrom(Object key,
Object element,
Object container)
INTERNAL:
Remove element from container which implements the Collection interface.
|
void |
removeFromWithOrder(int beginIndex,
Object container)
INTERNAL:
Remove elements from this container starting with this index
|
int |
sizeFor(Object container)
INTERNAL:
Return the size of container.
|
cloneFor, convertClassNamesToClasses, getCloneMethod, getCloneMethod, getContainerClass, getContainerClassName, invokeCloneMethodOn, isValidContainerType, setCloneMethod, setContainerClass, setContainerClassName, toStringInfo
addInto, addInto, addIntoWithOrder, addIntoWithOrder, addIntoWithOrder, buildContainerFromVector, buildPolicyFor, buildPolicyFor, clone, clone, compareCollectionsForChange, compareKeys, concatenateContainers, containerInstance, containerInstance, contains, containsKey, execute, getConstructor, getElementDescriptor, hasElementDescriptor, initializeConstructor, isCollectionPolicy, isCursoredStreamPolicy, isCursorPolicy, isCursorStreamPolicy, isDirectMapPolicy, isEmpty, isListPolicy, isMapPolicy, isScrollableCursorPolicy, isValidContainer, keyFrom, mergeCascadeParts, mergeChanges, next, overridesRead, prepare, prepareForExecution, recordAddToCollectionInChangeRecord, recordRemoveFromCollectionInChangeRecord, remoteExecute, removeAllElements, removeFrom, removeFrom, setConstructor, setElementDescriptor, setKeyName, toString, validateElementAndRehashIfRequired, vectorFor
public IndirectListContainerPolicy()
public IndirectListContainerPolicy(Class containerClass)
containerClass
- java.lang.Classprotected boolean addInto(Object key, Object element, Object container)
addInto
in class ContainerPolicy
element
- java.lang.Objectcontainer
- java.lang.Objectpublic void addIntoWithOrder(Vector indexes, Hashtable elements, Object container)
element
- java.lang.Objectcontainer
- java.lang.Objectpublic void clear(Object container)
clear
in class ContainerPolicy
container
- java.lang.Objectprotected boolean contains(Object element, Object container)
contains
in class ContainerPolicy
element
- java.lang.Objectcontainer
- java.lang.Objectpublic Class getInterfaceType()
getInterfaceType
in class InterfaceContainerPolicy
public boolean hasNext(Object iterator)
hasNext
in class InterfaceContainerPolicy
iterator
- java.lang.ObjectContainerPolicy.iteratorFor(java.lang.Object)
public boolean hasOrder()
hasOrder
in class ContainerPolicy
ContainerPolicy.iteratorFor(java.lang.Object)
public Object iteratorFor(Object container)
iteratorFor
in class ContainerPolicy
container
- java.lang.ObjectContainerPolicy.hasNext(java.lang.Object)
,
ContainerPolicy.next(java.lang.Object)
protected Object next(Object iterator)
next
in class InterfaceContainerPolicy
iterator
- java.lang.ObjectContainerPolicy.iteratorFor(java.lang.Object)
protected boolean removeFrom(Object key, Object element, Object container)
removeFrom
in class ContainerPolicy
element
- java.lang.Objectcontainer
- java.lang.Objectpublic void removeFromWithOrder(int beginIndex, Object container)
removeFromWithOrder
in class ContainerPolicy
beginIndex
- int the point to start deleting values from the collectioncontainer
- java.lang.Object#ListContainerPolicy
public int sizeFor(Object container)
sizeFor
in class ContainerPolicy
anObject
- java.lang.ObjectCopyright © 2022. All rights reserved.