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

public class BagOfWords extends ArrayList<String>
Data structure keeps the notion of the original ordering but the equals method will ignore the ordering
See Also:
  • Field Details

    • hashCode

      private int hashCode
      Cached hash code. IMPORTANT: MAKE VOLATILE IFF USED IN MULTI THREAD ENVIRONMENT.
  • Constructor Details

    • BagOfWords

      public BagOfWords(String[] tokensToBeAdded)
      Constructor
      Parameters:
      tokensToBeAdded - Tokens that shall be added to the BOW.
  • Method Details