public class TraitTypeMap<T extends String,K extends Thing<C>,C> extends TypeHierarchy<K,BitMaskKey<K>> implements Map<String,K>, Externalizable
AbstractBitwiseHierarchyImpl.HierCodeComparator
fixedRoot, line
Constructor and Description |
---|
TraitTypeMap() |
TraitTypeMap(Map map) |
Modifier and Type | Method and Description |
---|---|
void |
addStaticTrait(String name,
BitSet code) |
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<String,K>> |
entrySet() |
K |
get(Object key) |
BitSet |
getCurrentTypeCode() |
Collection<K> |
getMostSpecificTraits() |
BitSet |
getStaticTypeCode() |
boolean |
isEmpty() |
Set<String> |
keySet() |
K |
put(String key,
K value) |
void |
putAll(Map<? extends String,? extends K> m) |
K |
putSafe(String key,
K value) |
void |
readExternal(ObjectInput objectInput) |
K |
remove(Object key) |
Collection<K> |
removeCascade(BitSet code) |
Collection<K> |
removeCascade(String traitName) |
void |
setBottomCode(BitSet code) |
void |
setStaticTypeCode(BitSet staticTypeCode) |
int |
size() |
String |
toString() |
Collection<K> |
values() |
protected BitMaskKey<K> |
wrap(K value,
BitSet key) |
void |
writeExternal(ObjectOutput objectOutput) |
addMember, ancestors, ancestors, children, children, descendants, descendants, getBottomCode, getNode, getTopCode, parentValues, setTopCode
add, contains, getCode, getMember, getNodeByKey, getNodes, getSortedMap, getSortedMembers, hasKey, immediateChildren, immediateParents, joinCode, jointMembersCode, lowerBorder, lowerDescendants, meetCode, metMembersCode, numBit, parents, parents, remove, removeMember, removeMember, stringToBitSet, superset, supersetOrEqualset, toBinaryString, toBinaryString, upperAncestors, upperBorder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
getCode, getMember, getSortedMap, getSortedMembers, hasKey, immediateChildren, immediateParents, joinCode, jointMembersCode, lowerBorder, lowerDescendants, meetCode, metMembersCode, parents, parents, removeMember, removeMember, upperAncestors, upperBorder
public TraitTypeMap()
public TraitTypeMap(Map map)
public int size()
public boolean isEmpty()
public boolean containsKey(Object key)
public boolean containsValue(Object value)
public void setBottomCode(BitSet code)
setBottomCode
in interface TypeLattice<K extends Thing<C>>
setBottomCode
in class TypeHierarchy<K extends Thing<C>,BitMaskKey<K extends Thing<C>>>
protected BitMaskKey<K> wrap(K value, BitSet key)
wrap
in class TypeHierarchy<K extends Thing<C>,BitMaskKey<K extends Thing<C>>>
public K putSafe(String key, K value) throws LogicalTypeInconsistencyException
public Collection<K> removeCascade(String traitName)
public Collection<K> removeCascade(BitSet code)
public void clear()
public Collection<K> values()
public String toString()
toString
in class TypeHierarchy<K extends Thing<C>,BitMaskKey<K extends Thing<C>>>
public void writeExternal(ObjectOutput objectOutput) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class TypeHierarchy<K extends Thing<C>,BitMaskKey<K extends Thing<C>>>
IOException
public void readExternal(ObjectInput objectInput) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class TypeHierarchy<K extends Thing<C>,BitMaskKey<K extends Thing<C>>>
IOException
ClassNotFoundException
public Collection<K> getMostSpecificTraits()
public BitSet getCurrentTypeCode()
public BitSet getStaticTypeCode()
public void setStaticTypeCode(BitSet staticTypeCode)
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.