Class BagOfWords
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<String>
de.uni_mannheim.informatik.dws.melt.matching_jena_matchers.elementlevel.BagOfWords
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<String>
,Collection<String>
,List<String>
,RandomAccess
Data structure keeps the notion of the original ordering but the equals method will ignore the ordering
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
-
Method Summary
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
Methods inherited from class java.util.AbstractCollection
containsAll
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
Methods inherited from interface java.util.List
containsAll
-
Field Details
-
hashCode
private int hashCodeCached hash code. IMPORTANT: MAKE VOLATILE IFF USED IN MULTI THREAD ENVIRONMENT.
-
-
Constructor Details
-
BagOfWords
Constructor- Parameters:
tokensToBeAdded
- Tokens that shall be added to the BOW.
-
-
Method Details
-
equals
Two BagOfWords qualify as the same object if they contain the same objects. The order of elements does not matter. -
hashCode
public int hashCode() -
toString
- Overrides:
toString
in classAbstractCollection<String>
-