Class RoleDescriptorXSAnyAdapter.MutableChildrenList<T extends XMLObject>
java.lang.Object
org.opensaml.saml.saml2.metadata.impl.RoleDescriptorXSAnyAdapter.MutableChildrenList<T>
- Type Parameters:
T- the type of the list
- All Implemented Interfaces:
Iterable<T>,Collection<T>,List<T>
- Enclosing class:
- RoleDescriptorXSAnyAdapter
private class RoleDescriptorXSAnyAdapter.MutableChildrenList<T extends XMLObject>
extends Object
implements List<T>
Array implementation which causes all XMLObject children of the owning instance to be synced back to the
underlying adapted
XSAny on any list mutation operations.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classIterator for mutable children which disallows removal.private classListIterator for mutable children which disallows removal. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, Collection<? extends T> c) booleanaddAll(Collection<? extends T> c) private booleanaddAllNoSync(Collection<? extends T> c) Same asaddAll(Collection), except do not sync back to adapted instance.voidclear()booleanbooleancontainsAll(Collection<?> c) get(int index) intbooleanisEmpty()iterator()intlistIterator(int index) remove(int index) booleanbooleanremoveAll(Collection<?> c) booleanvoidreplaceAll(UnaryOperator<T> operator) booleanretainAll(Collection<?> c) intsize()subList(int fromIndex, int toIndex) Object[]toArray()<T> T[]toArray(T[] a) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
equals, hashCode, sort, spliterator
-
Field Details
-
storage
Internal storage for the list.
-
-
Constructor Details
-
MutableChildrenList
Constructor.- Parameters:
list- the backing storage for the list
-
-
Method Details
-
set
-
add
-
add
-
remove
-
remove
-
clear
public void clear() -
addAll
-
addAll
-
removeAll
-
retainAll
-
removeIf
- Specified by:
removeIfin interfaceCollection<T extends XMLObject>
-
replaceAll
- Specified by:
replaceAllin interfaceList<T extends XMLObject>
-
size
public int size() -
isEmpty
public boolean isEmpty() -
contains
-
toArray
-
toArray
public <T> T[] toArray(T[] a) -
containsAll
- Specified by:
containsAllin interfaceCollection<T extends XMLObject>- Specified by:
containsAllin interfaceList<T extends XMLObject>
-
get
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList<T extends XMLObject>
-
iterator
-
listIterator
- Specified by:
listIteratorin interfaceList<T extends XMLObject>
-
listIterator
- Specified by:
listIteratorin interfaceList<T extends XMLObject>
-
subList
-
addAllNoSync
Same asaddAll(Collection), except do not sync back to adapted instance.- Parameters:
c- collection containing elements to be added to this list- Returns:
- true if this list changed as a result of the call
-