Class DistinctIteration<E,​X extends Exception>

    • Constructor Detail

      • DistinctIteration

        public DistinctIteration​(Iteration<? extends E,​? extends X> iter)
        Deprecated.
        Creates a new DistinctIterator.
        Parameters:
        iter - The underlying iterator.
      • DistinctIteration

        public DistinctIteration​(Iteration<? extends E,​? extends X> iter,
                                 Supplier<Set<E>> setMaker)
        Deprecated.
    • Method Detail

      • accept

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

        protected boolean add​(E object)
                       throws X extends Exception
        Deprecated.
        Parameters:
        object - to put into the set
        Throws:
        X extends Exception
      • makeSet

        protected Set<E> makeSet()
        Deprecated.