Class AbstractEvaluator.CommonKeyIterator

  • All Implemented Interfaces:
    Iterator<QDLKey>
    Enclosing class:
    AbstractEvaluator

    public static class AbstractEvaluator.CommonKeyIterator
    extends Object
    implements Iterator<QDLKey>
    An iterator for the keys that are common between stems. These are the keys of the final result of operations on stems. Contract is that this has a list of keys and add(StemKeys) will add the set to the list. When this iterates, it iterates over this list and looks for a key.
    • Constructor Detail

      • CommonKeyIterator

        public CommonKeyIterator()
    • Method Detail

      • add

        public void add​(StemKeys keys)
      • reset

        protected void reset()
        Since next() has to peek inside of the iterator to tell if the next key is really valid, hasNext() consumes the iterator. This resets the iterator so hasNext() works from the start.
      • allHaveValue

        protected boolean allHaveValue​(Object value)