Class MixedIdentityHashSet
- java.lang.Object
- 
- jadex.rules.rulesystem.rete.nodes.MixedIdentityHashSet
 
- 
- All Implemented Interfaces:
- java.lang.Iterable,- java.util.Collection,- java.util.Set
 
 public class MixedIdentityHashSet extends java.lang.Object implements java.util.SetA mixed identity hash set allows to store java objects using identity and java values (numbers, strings, etc.) using equality. Rete tuples are always stored by equality.
- 
- 
Constructor SummaryConstructors Constructor Description MixedIdentityHashSet(IOAVState state)Create a new mixed identity map.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(java.lang.Object value)booleanaddAll(java.util.Collection coll)voidclear()booleancontains(java.lang.Object value)booleancontainsAll(java.util.Collection coll)booleanequals(java.lang.Object obj)inthashCode()booleanisEmpty()java.util.Iteratoriterator()booleanremove(java.lang.Object value)booleanremoveAll(java.util.Collection coll)booleanretainAll(java.util.Collection coll)intsize()java.lang.Object[]toArray()java.lang.Object[]toArray(java.lang.Object[] ret)java.lang.StringtoString()Create a string representation.
 
- 
- 
- 
Field Detail- 
stateprotected IOAVState state The state.
 - 
equalityprotected java.util.Set equality The equality map.
 - 
identityprotected java.util.Set identity The identity map.
 
- 
 - 
Constructor Detail- 
MixedIdentityHashSetpublic MixedIdentityHashSet(IOAVState state) Create a new mixed identity map.
 
- 
 - 
Method Detail- 
clearpublic void clear() - Specified by:
- clearin interface- java.util.Collection
- Specified by:
- clearin interface- java.util.Set
 
 - 
containspublic boolean contains(java.lang.Object value) - Specified by:
- containsin interface- java.util.Collection
- Specified by:
- containsin interface- java.util.Set
 
 - 
isEmptypublic boolean isEmpty() - Specified by:
- isEmptyin interface- java.util.Collection
- Specified by:
- isEmptyin interface- java.util.Set
 
 - 
addpublic boolean add(java.lang.Object value) - Specified by:
- addin interface- java.util.Collection
- Specified by:
- addin interface- java.util.Set
 
 - 
addAllpublic boolean addAll(java.util.Collection coll) - Specified by:
- addAllin interface- java.util.Collection
- Specified by:
- addAllin interface- java.util.Set
 
 - 
removepublic boolean remove(java.lang.Object value) - Specified by:
- removein interface- java.util.Collection
- Specified by:
- removein interface- java.util.Set
 
 - 
sizepublic int size() - Specified by:
- sizein interface- java.util.Collection
- Specified by:
- sizein interface- java.util.Set
 
 - 
containsAllpublic boolean containsAll(java.util.Collection coll) - Specified by:
- containsAllin interface- java.util.Collection
- Specified by:
- containsAllin interface- java.util.Set
 
 - 
iteratorpublic java.util.Iterator iterator() - Specified by:
- iteratorin interface- java.util.Collection
- Specified by:
- iteratorin interface- java.lang.Iterable
- Specified by:
- iteratorin interface- java.util.Set
 
 - 
removeAllpublic boolean removeAll(java.util.Collection coll) - Specified by:
- removeAllin interface- java.util.Collection
- Specified by:
- removeAllin interface- java.util.Set
 
 - 
retainAllpublic boolean retainAll(java.util.Collection coll) - Specified by:
- retainAllin interface- java.util.Collection
- Specified by:
- retainAllin interface- java.util.Set
 
 - 
toArraypublic java.lang.Object[] toArray() - Specified by:
- toArrayin interface- java.util.Collection
- Specified by:
- toArrayin interface- java.util.Set
 
 - 
toArraypublic java.lang.Object[] toArray(java.lang.Object[] ret) - Specified by:
- toArrayin interface- java.util.Collection
- Specified by:
- toArrayin interface- java.util.Set
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Specified by:
- equalsin interface- java.util.Collection
- Specified by:
- equalsin interface- java.util.Set
- Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() - Specified by:
- hashCodein interface- java.util.Collection
- Specified by:
- hashCodein interface- java.util.Set
- Overrides:
- hashCodein class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() Create a string representation.- Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-