public class TraitTypeMap<T extends String,K extends Thing<C>,C> extends TypeHierarchy<K,BitMaskKey<K>> implements Map<String,K>, Externalizable
AbstractBitwiseHierarchyImpl.HierCodeComparatorfixedRoot, 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, setTopCodeadd, 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, upperBorderclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAllgetCode, getMember, getSortedMap, getSortedMembers, hasKey, immediateChildren, immediateParents, joinCode, jointMembersCode, lowerBorder, lowerDescendants, meetCode, metMembersCode, parents, parents, removeMember, removeMember, upperAncestors, upperBorderpublic 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 ExternalizablewriteExternal in class TypeHierarchy<K extends Thing<C>,BitMaskKey<K extends Thing<C>>>IOExceptionpublic void readExternal(ObjectInput objectInput) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class TypeHierarchy<K extends Thing<C>,BitMaskKey<K extends Thing<C>>>IOExceptionClassNotFoundExceptionpublic Collection<K> getMostSpecificTraits()
public BitSet getCurrentTypeCode()
public BitSet getStaticTypeCode()
public void setStaticTypeCode(BitSet staticTypeCode)
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.