|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use SList | |
---|---|
sdds | A set of unchanging (static) data structures, which return clones every time they are modified, and their equivalent dynamic counterparts. |
Uses of SList in sdds |
---|
Methods in sdds that return SList | |
---|---|
SList<O> |
SList.add(List<O> otherList)
Add every element from otherList to the static list. |
SList<O> |
SList.add(O element)
Add an element to the static list in O(1) time. |
SList<O> |
SList.add(O[] elements)
Add x elements to the static list in O(x) time. |
SList<O> |
SList.clone()
Return a deep copy of the dynamic list. |
protected SList<O> |
SList.makeList(int length,
sdds.List.Node<O> first)
This protected method is used instead of a constructor to create new lists when this list is modified. |
SList<O> |
SList.remove(O element)
Remove the first instance of a given object from the static list in O(n) time. |
SList<O> |
SList.removeAll(O element)
Remove every instance of a given object from the static list in O(n) time. |
SList<O> |
SList.removeAllEquals(O element)
Remove every instance of a given object from the list in O(n) time. |
SList<O> |
SList.removeEquals(O element)
Remove the first instance of a given object from the static list in O(n) time. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |