Class CardAttributeMap
java.lang.Object
java.util.AbstractMap<K,V>
java.util.EnumMap<K,V>
net.demilich.metastone.game.cards.BaseMap<Attribute,Object>
net.demilich.metastone.game.cards.AttributeMap
net.demilich.metastone.game.cards.CardAttributeMap
- All Implemented Interfaces:
com.fasterxml.jackson.databind.JsonSerializable,Serializable,Cloneable,Map<Attribute,,Object> HasEntrySet<Attribute,Object>
public final class CardAttributeMap
extends AttributeMap
implements Cloneable, com.fasterxml.jackson.databind.JsonSerializable, Serializable
A hashmap that can contain "overrides" to a
CardDesc. This allows cards to assume other identities while
retaining their enchantments by changing their Attribute.CARD_ID or Attribute.AURA_CARD_ID.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> Nested classes/interfaces inherited from interface net.demilich.metastone.game.cards.desc.HasEntrySet
HasEntrySet.BfsEnum, HasEntrySet.BfsNode<T extends Enum,V> Nested classes/interfaces inherited from interface com.fasterxml.jackson.databind.JsonSerializable
com.fasterxml.jackson.databind.JsonSerializable.Base -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleancontainsKey(Object key) getCard()voidserialize(com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider serializers) voidserializeWithType(com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider serializers, com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer) voidMethods inherited from class net.demilich.metastone.game.cards.AttributeMap
entrySet, putMethods inherited from class java.util.EnumMap
clear, containsValue, equals, hashCode, keySet, putAll, remove, size, valuesMethods inherited from class java.util.AbstractMap
isEmptyMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.demilich.metastone.game.cards.desc.HasEntrySet
bfsMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
CardAttributeMap
-
-
Method Details
-
unsafeKeySet
- Overrides:
unsafeKeySetin classAttributeMap
-
get
-
containsKey
- Specified by:
containsKeyin interfaceMap<Attribute,Object> - Overrides:
containsKeyin classEnumMap<Attribute,Object>
-
getCard
-
setCard
-
clone
- Overrides:
clonein classAttributeMap
-
serialize
public void serialize(com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider serializers) throws IOException - Specified by:
serializein interfacecom.fasterxml.jackson.databind.JsonSerializable- Throws:
IOException
-
serializeWithType
public void serializeWithType(com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider serializers, com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer) throws IOException - Specified by:
serializeWithTypein interfacecom.fasterxml.jackson.databind.JsonSerializable- Throws:
IOException
-