Interface EffectiveNodeTypeCache.Key
-
- All Superinterfaces:
Comparable<EffectiveNodeTypeCache.Key>
- Enclosing interface:
- EffectiveNodeTypeCache
public static interface EffectiveNodeTypeCache.Key extends Comparable<EffectiveNodeTypeCache.Key>
AnENTKeyuniquely identifies a combination (i.e. an aggregation) of one or more node types.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancontains(EffectiveNodeTypeCache.Key otherKey)Checks if theotherKeyis contained in this one.Name[]getNames()Returns the node type names of this key.EffectiveNodeTypeCache.Keysubtract(EffectiveNodeTypeCache.Key otherKey)Creates a new key as a result of a subtract operation.-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Method Detail
-
getNames
Name[] getNames()
Returns the node type names of this key.- Returns:
- the node type names of this key.
-
contains
boolean contains(EffectiveNodeTypeCache.Key otherKey)
Checks if theotherKeyis contained in this one. I.e. if this key contains all node type names of the other key.- Parameters:
otherKey- the other key to check- Returns:
trueif this key contains the other key;falseotherwise.
-
subtract
EffectiveNodeTypeCache.Key subtract(EffectiveNodeTypeCache.Key otherKey)
Creates a new key as a result of a subtract operation. i.e. removes all node type names that from the other key.Please note that no exception is thrown if the other key has node type names that are not contained in this key (i.e.
contains(Key)returnsfalse).- Parameters:
otherKey- the other key to subtract- Returns:
- the new key of the subtraction operation.
-
-