Class SetEnumeration<T>

  • Type Parameters:
    T - the generic type
    All Implemented Interfaces:
    java.util.Enumeration<T>

    public class SetEnumeration<T>
    extends java.lang.Object
    implements java.util.Enumeration<T>
    The class SetEnumeration associates the elements of the given Set and the given Enumeration.
    • Constructor Summary

      Constructors 
      Constructor Description
      SetEnumeration​(java.util.Set<T> set, java.util.Enumeration<T> enumeration)
      Instantiates a new SetEnumeration from the given Set and the given Enumeration.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasMoreElements()
      T nextElement()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Enumeration

        asIterator
    • Constructor Detail

      • SetEnumeration

        public SetEnumeration​(java.util.Set<T> set,
                              java.util.Enumeration<T> enumeration)
        Instantiates a new SetEnumeration from the given Set and the given Enumeration.
        Parameters:
        set - the set
        enumeration - the enumeration
    • Method Detail

      • hasMoreElements

        public boolean hasMoreElements()
        Specified by:
        hasMoreElements in interface java.util.Enumeration<T>
      • nextElement

        public T nextElement()
        Specified by:
        nextElement in interface java.util.Enumeration<T>