-
-
Method Summary
Modifier and Type Method Description intsize()ValueTypeget(KeyType key)List<KeyType>getKeysAsList()synchronized voidaddToTop(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 voidaddToBottom(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 booleanmoveToTop(KeyType element)Move above all other elements synchronized booleanmoveAbove(KeyType objectToMove, KeyType reference)Move above the specified element synchronized booleanmoveBeneath(KeyType objectToMove, KeyType reference)Move beneath the specified element synchronized booleanmoveToBottom(KeyType key)Move beneath all other elements synchronized booleanmoveUp(KeyType key)Move up by one element synchronized booleanmoveDown(KeyType key)Move down by one element List<KeyType>elements()List<KeyType>keys()synchronized booleanremove(KeyType key)ValueTypegetTop()ValueTypegetBottom()ValueTypegetAbove(KeyType key)ValueTypegetBeneath(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)
-
-
-
-