Package org.primefaces.model
Class TreeNodeChildren<T>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<TreeNode<T>>
-
- org.primefaces.model.TreeNodeList<T>
-
- org.primefaces.model.TreeNodeChildren<T>
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<TreeNode<T>>
,Collection<TreeNode<T>>
,List<TreeNode<T>>
,RandomAccess
public class TreeNodeChildren<T> extends TreeNodeList<T>
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description TreeNodeChildren(TreeNode<T> parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, TreeNode<T> node)
boolean
add(TreeNode<T> node)
boolean
addAll(int index, Collection<? extends TreeNode<T>> collection)
boolean
addAll(Collection<? extends TreeNode<T>> collection)
TreeNode
remove(int index)
boolean
remove(Object object)
TreeNode
set(int index, TreeNode node)
TreeNode
setSibling(int index, TreeNode node)
Optimized set implementation to be used in sorting-
Methods inherited from class java.util.ArrayList
clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, removeAll, removeIf, removeRange, replaceAll, retainAll, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
Methods inherited from class java.util.AbstractCollection
containsAll, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
-
Methods inherited from interface java.util.List
containsAll
-
-
-
-
Method Detail
-
addAll
public boolean addAll(Collection<? extends TreeNode<T>> collection)
-
addAll
public boolean addAll(int index, Collection<? extends TreeNode<T>> collection)
-
setSibling
public TreeNode setSibling(int index, TreeNode node)
Optimized set implementation to be used in sorting- Overrides:
setSibling
in classTreeNodeList<T>
- Parameters:
index
- index of the element to replacenode
- node to be stored at the specified position- Returns:
- the node previously at the specified position
-
remove
public TreeNode remove(int index)
-
-