if key already exists within the structure , it 's value is replaced with the new value and it 's existing order is maintained . concode_field_sep ZLinkedList<KeyType> zlist concode_elem_sep HashMap<KeyType,ValueType> hash concode_field_sep void addToTop concode_elem_sep boolean moveBeneath concode_elem_sep List<KeyType> keys concode_elem_sep List<KeyType> getKeysAsList concode_elem_sep boolean moveAbove concode_elem_sep boolean moveDown concode_elem_sep boolean remove concode_elem_sep int size concode_elem_sep ValueType get concode_elem_sep List<KeyType> elements concode_elem_sep boolean moveToTop concode_elem_sep boolean moveToBottom concode_elem_sep boolean moveUp
void function ( KeyType arg0 , ValueType arg1 ) { if ( hash . containsKey ( arg0 ) ) { hash . put ( arg0 , arg1 ) ; } else { hash . put ( arg0 , arg1 ) ; zlist . addToBottom ( arg0 ) ; } }