- Java Interface Mapinterface K V Cmsc256 Put K V Remove K Getvalue K Contains K Boolean Getkeylterator Iterato 1 (186.13 KiB) Viewed 16 times
<> MapInterface cmsc256 put(K,V) remove(K) getValue(K) contains(K):boolean getKeylterator():Iterato
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
<> MapInterface cmsc256 put(K,V) remove(K) getValue(K) contains(K):boolean getKeylterator():Iterato
<<Java Interface>> MapInterface<K,V> cmsc256 put(K,V) remove(K) getValue(K) contains(K):boolean getKeylterator():Iterator<K> getValuelterator(): Iterator<V> isEmpty():boolean isFull():boolean ● getSize():int ● clear():void <<Java Class>> ⒸHashTable SeparateChaining<K,V> cmsc256 HashTableSeparateChaining() HashTableSeparateChaining (int,double) enlargeHash Table():void ● getSize():int ● isEmpty():boolean ● isFull():boolean ● clear():void toString():String getKeylterator():Iterator<K> getValuelterator(): Iterator<V> ● put(K,V) ● remove(K) ●getValue(K) ● contains(K):boolean main(String[]):void #table <<Java Class>> Keylterator cmsc256 ● next() ● remove():void 0..* -currentList <<Java Class>> Entry<K,V> cmsc256 ☐ key: K ☐ value: V Entry(K,V) >getKey() >getValue() > setValue(V):void toString(): String 0..* □ currentindex: int □ currentListIterator: ListIterator<Entry<K,V>> a numberLeft: int hasNext():boolean 0..* -currentList ● next() <<Java Class>> Valuelterator cmsc256 currentIndex: int ☐ currentListIterator: ListIterator<Entry<K,V>> a numberLeft: int hasNext():boolean