E - Aibės elementas, turi tenkinti interfeisą Comparable, arba per
klasės konstruktorių turi būti paduodamas Comparator klasės objektas.public class AvlSetKTU<E extends java.lang.Comparable<E>> extends BstSetKTU<E> implements SortedSetADT<E>
| Modifier and Type | Class and Description |
|---|---|
protected class |
AvlSetKTU.AVLNode<E2 extends java.lang.Comparable<E2>>
Vidinė kolekcijos mazgo klasė
|
BstSetKTU.BstNode<E2 extends java.lang.Comparable<E2>>| Constructor and Description |
|---|
AvlSetKTU() |
AvlSetKTU(java.util.Comparator<E> c) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(E element)
Aibė papildoma nauju elementu.
|
void |
remove(E element)
Pašalinamas elementas iš aibės.
|
int |
treeHeight() |
clear, clone, contains, descendingIterator, headSet, isEmpty, iterator, size, subSet, tailSet, toArray, toString, toVisualizedStringequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdescendingIterator, headSet, subSet, tailSet