-
-
Method Summary
Modifier and Type Method Description int
size()
ValueType
get(KeyType key)
List<KeyType>
getKeysAsList()
synchronized void
addToTop(KeyType key, ValueType value)
If key already exists within the structure, it's value is replaced with the new value andit's existing order is maintained. synchronized void
addToBottom(KeyType key, ValueType value)
If key already exists within the structure, it's value is replaced with the new value andit's existing order is maintained. synchronized boolean
moveToTop(KeyType element)
Move above all other elements synchronized boolean
moveAbove(KeyType objectToMove, KeyType reference)
Move above the specified element synchronized boolean
moveBeneath(KeyType objectToMove, KeyType reference)
Move beneath the specified element synchronized boolean
moveToBottom(KeyType key)
Move beneath all other elements synchronized boolean
moveUp(KeyType key)
Move up by one element synchronized boolean
moveDown(KeyType key)
Move down by one element List<KeyType>
elements()
List<KeyType>
keys()
synchronized boolean
remove(KeyType key)
ValueType
getTop()
ValueType
getBottom()
ValueType
getAbove(KeyType key)
ValueType
getBeneath(KeyType key)
-
-
Method Detail
-
size
int size()
-
getKeysAsList
List<KeyType> getKeysAsList()
-
addToTop
synchronized void addToTop(KeyType key, ValueType value)
If key already exists within the structure, it's value is replaced with the new value andit's existing order is maintained.
-
addToBottom
synchronized void addToBottom(KeyType key, ValueType value)
If key already exists within the structure, it's value is replaced with the new value andit's existing order is maintained.
-
moveAbove
synchronized boolean moveAbove(KeyType objectToMove, KeyType reference)
Move above the specified element
-
moveBeneath
synchronized boolean moveBeneath(KeyType objectToMove, KeyType reference)
Move beneath the specified element
-
moveToBottom
synchronized boolean moveToBottom(KeyType key)
Move beneath all other elements
-
getBeneath
ValueType getBeneath(KeyType key)
-
-
-
-