Class DistinctIteration<E>

    • Constructor Detail

      • DistinctIteration

        public DistinctIteration​(CloseableIteration<? extends E> iter)
        Creates a new DistinctIterator.
        Parameters:
        iter - The underlying iterator.
    • Method Detail

      • accept

        protected boolean accept​(E object)
        Returns true if the specified object hasn't been seen before.
        Specified by:
        accept in class FilterIteration<E>
        Parameters:
        object - The object to be tested.
        Returns:
        true if the object should be returned, false otherwise.
      • add

        protected boolean add​(E object)
        Parameters:
        object - to put into the set
      • makeSet

        protected Set<E> makeSet()