Class SMap<K,V>

java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
org.ampere.base.util.SMap<K,V>
Type Parameters:
K - key of the map
V - value of the map
All Implemented Interfaces:
Serializable, Cloneable, Map<K,V>
Direct Known Subclasses:
FlagMap

public class SMap<K,V> extends HashMap<K,V>
Map with Simple Entries for simple static construction
Author:
hmorel
See Also:
  • Constructor Details

    • SMap

      public SMap(SMEntry<K,V>... flagEntries)
      construct a new Flag Map from a list of flag entries
      Parameters:
      flagEntries - input flag entry list
    • SMap

      public SMap(SMap<K,V> source, SMEntry<K,V>... flagEntries)
      construct a new Flag Map by adding to an input one a list of flag entries
      Parameters:
      flagEntries - complement flag list
    • SMap

      public SMap(List<SMEntry<K,V>> entries)