Class BaseMap<K extends java.lang.Enum<K>,​V>

java.lang.Object
java.util.AbstractMap<K,​V>
java.util.EnumMap<K,​V>
net.demilich.metastone.game.cards.BaseMap<K,​V>
Type Parameters:
K -
V -
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<K,​V>
Direct Known Subclasses:
AttributeMap, Desc

public abstract class BaseMap<K extends java.lang.Enum<K>,​V>
extends java.util.EnumMap<K,​V>
A base map wrapping extending a HashMap or EnumMap depending on the memory needs of this server instance.
See Also:
Serialized Form
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.util.AbstractMap

    java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>

    Nested classes/interfaces inherited from interface java.util.Map

    java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
  • Constructor Summary

    Constructors 
    Constructor Description
    BaseMap​(java.lang.Class<K> keyType)  
  • Method Summary

    Modifier and Type Method Description
    BaseMap<K,​V> clone()  
    java.lang.String toString()  

    Methods inherited from class java.util.EnumMap

    clear, containsKey, containsValue, entrySet, equals, get, hashCode, keySet, put, putAll, remove, size, values

    Methods inherited from class java.util.AbstractMap

    isEmpty

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.util.Map

    compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
  • Constructor Details

    • BaseMap

      public BaseMap​(java.lang.Class<K> keyType)
  • Method Details

    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.util.AbstractMap<K extends java.lang.Enum<K>,​V>
    • clone

      public BaseMap<K,​V> clone()
      Overrides:
      clone in class java.util.EnumMap<K extends java.lang.Enum<K>,​V>