There is Map interface in java, but also there are other interfaces like SortedMap and Map.Entry interfaces. This tutorial will cover following:
Introduction to Maps in java
Map interfaces
- Map implemented by HashMap and TreeMap
Map Interface methods - SortedMap implemented by TreeMap.
SortedMap interface methods - Map.Entry which describes access methods to the key-value pairs.
Map.Entry interface methods
Classes Implementing Map
- HashMap in java
- TreeMap in java
- HashTable in java
- IdentityHashMap
- WeakHashMap
- LinkedHashMap
- Properties class
Iterating over a Map
Comparison of maps to Hashtable
Basic Operations on Maps
Bulk Operations on Maps
Collection Views for Maps
Fancy Uses of Collection-Views: Map Algebra
Multimaps
Examples
Creating a weak hashmap
Creating a hashmap in java
Creating a Map That Retains Order-of-Insertion
Creating type-specific map
No comments:
Post a Comment