Class CollectionValueIterator

    • Constructor Detail

      • CollectionValueIterator

        public CollectionValueIterator​(Collection vals)
    • Method Detail

      • hasNext

        public boolean hasNext()
                        throws TeiidComponentException
        Description copied from interface: ValueIterator
        Returns true if the iteration has more values. (In other words, returns true if next would return a value rather than throwing an exception.)
        Specified by:
        hasNext in interface ValueIterator
        Returns:
        true if this ValueIterator has more values.
        Throws:
        TeiidComponentException - indicating a non business- related Exception such as a service or bean being unavailable, or a communication failure.
        Since:
        4.3
        See Also:
        ValueIterator.hasNext()
      • reset

        public void reset()
        Description copied from interface: ValueIterator
        Optional reset method - allows a single instance of a ValueIterator implementation to be resettable, such that the next call to next returns the first element in the iteration (if any). This method should be able to be called at any point during the lifecycle of a ValueIterator instance.
        Specified by:
        reset in interface ValueIterator
        Since:
        4.3
        See Also:
        ValueIterator.reset()