Level 142 Level 144
Level 143

[No Typing] Collections: Various Interfaces


12 words 0 ignored

Ready to learn       Ready to review

Ignore words

Check the boxes below to ignore/unignore words, then click save at the bottom. Ignored words will never appear in any learning session.

All None

Ignore?
boolean equals(Object obj)
Returns true if obj is a Map.Entry whose key and value are equal to that of the invoking object.
Object getKey()
Returns the key for this map entry.
Object getValue()
Returns the value for this map entry.
int hashCode()
Returns the hash code for this map entry.
Object setValue(Object v)
Sets the value for this map entry to v. A ClassCastException is thrown if v is not the correct type for the map.
Comparator comparator()
Returns the invoking sorted map's comparator. If the natural ordering is used for the invoking map, null is returned.
Object firstKey()
Returns the first key in the invoking map.
SortedMap headMap(Object end)
Returns a sorted map for those map entries with keys that are less than end.
Object lastKey()
Returns the last key in the invoking map.
SortedMap tailMap(Object start)
Returns a map containing those entries with keys that are greater than or equal to start.
boolean hasMoreElements()
When implemented, it must return true while there are still more elements to extract, and false when all the elements have been enumerated.
Object nextElement()
This returns the next object in the enumeration as a generic Object reference.