E - Entity typepublic class TreeModel<E extends TreeNode<E>> extends Object implements List<E>, TreeNode<E>, Comparator<E>
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E entity) |
void |
add(int index,
E entity) |
boolean |
addAll(Collection<? extends E> entities) |
boolean |
addAll(int index,
Collection<? extends E> entities) |
void |
clear() |
int |
compare(E o1,
E o2) |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> entities) |
E |
get(int index) |
List<E> |
getChildren() |
TreeNode<E> |
getParent() |
SortDirection |
getSortDirection() |
int |
indexOf(Object o) |
boolean |
isComparable(E object) |
boolean |
isEmpty() |
boolean |
isExpanded(E node) |
boolean |
isLeaf() |
Iterator<E> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<E> |
listIterator() |
ListIterator<E> |
listIterator(int index) |
E |
remove(int index) |
boolean |
remove(Object entity) |
boolean |
removeAll(Collection<?> entities) |
boolean |
retainAll(Collection<?> entities) |
E |
set(int index,
E entity) |
void |
setComparator(Comparator<E> comparator) |
void |
setSortDirection(SortDirection sortDirection) |
int |
size() |
List<E> |
subList(int fromIndex,
int toIndex) |
boolean |
switchState(E node) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCode, replaceAll, sort, spliteratorparallelStream, removeIf, streamhasChildren, isRootcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic TreeModel()
public TreeModel(E... entities)
public int size()
public boolean isEmpty()
public boolean contains(Object o)
public Object[] toArray()
public <T> T[] toArray(T[] a)
public boolean add(E entity)
public boolean remove(Object entity)
public boolean containsAll(Collection<?> entities)
containsAll in interface Collection<E extends TreeNode<E>>containsAll in interface List<E extends TreeNode<E>>public boolean addAll(Collection<? extends E> entities)
public boolean addAll(int index,
Collection<? extends E> entities)
public boolean removeAll(Collection<?> entities)
public boolean retainAll(Collection<?> entities)
public void clear()
public int lastIndexOf(Object o)
lastIndexOf in interface List<E extends TreeNode<E>>public ListIterator<E> listIterator()
listIterator in interface List<E extends TreeNode<E>>public ListIterator<E> listIterator(int index)
listIterator in interface List<E extends TreeNode<E>>public boolean switchState(E node)
node - public boolean isExpanded(E node)
public List<E> getChildren()
getChildren in interface TreeNode<E extends TreeNode<E>>public void setComparator(Comparator<E> comparator)
public int compare(E o1, E o2)
compare in interface Comparator<E extends TreeNode<E>>public boolean isComparable(E object)
public SortDirection getSortDirection()
public void setSortDirection(@NotNull
SortDirection sortDirection)
Copyright © 2018 Xalys. All rights reserved.