Class InterpretationTrieSet

  • All Implemented Interfaces:
    java.lang.Iterable<Interpretation>, java.util.Collection<Interpretation>, java.util.Set<Interpretation>

    public final class InterpretationTrieSet
    extends java.util.AbstractSet<Interpretation>
    This is a monotone collection, hence you can only add elements to it, but not remove them.
    Author:
    Mathias Hofer
    • Method Summary

      Modifier and Type Method Description
      boolean add​(Interpretation e)  
      boolean contains​(java.lang.Object o)  
      java.util.Iterator<Interpretation> iterator()  
      static java.util.List<Argument> orderedDecided​(Interpretation interpretation, Argument[] order)  
      boolean remove​(java.lang.Object o)  
      boolean removeAll​(java.util.Collection<?> c)  
      int size()  
      • Methods inherited from class java.util.AbstractSet

        equals, hashCode
      • Methods inherited from class java.util.AbstractCollection

        addAll, clear, containsAll, isEmpty, retainAll, toArray, toArray, toString
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, removeIf, stream, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.Set

        addAll, clear, containsAll, isEmpty, retainAll, spliterator, toArray, toArray
    • Constructor Detail

      • InterpretationTrieSet

        public InterpretationTrieSet()
      • InterpretationTrieSet

        public InterpretationTrieSet​(java.util.List<Interpretation> interpretations)
    • Method Detail

      • iterator

        public java.util.Iterator<Interpretation> iterator()
        Specified by:
        iterator in interface java.util.Collection<Interpretation>
        Specified by:
        iterator in interface java.lang.Iterable<Interpretation>
        Specified by:
        iterator in interface java.util.Set<Interpretation>
        Specified by:
        iterator in class java.util.AbstractCollection<Interpretation>
      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<Interpretation>
        Specified by:
        size in interface java.util.Set<Interpretation>
        Specified by:
        size in class java.util.AbstractCollection<Interpretation>
      • remove

        public boolean remove​(java.lang.Object o)
        Specified by:
        remove in interface java.util.Collection<Interpretation>
        Specified by:
        remove in interface java.util.Set<Interpretation>
        Overrides:
        remove in class java.util.AbstractCollection<Interpretation>
      • removeAll

        public boolean removeAll​(java.util.Collection<?> c)
        Specified by:
        removeAll in interface java.util.Collection<Interpretation>
        Specified by:
        removeAll in interface java.util.Set<Interpretation>
        Overrides:
        removeAll in class java.util.AbstractSet<Interpretation>
      • contains

        public boolean contains​(java.lang.Object o)
        Specified by:
        contains in interface java.util.Collection<Interpretation>
        Specified by:
        contains in interface java.util.Set<Interpretation>
        Overrides:
        contains in class java.util.AbstractCollection<Interpretation>