Class SingleItemEnumeration

  • All Implemented Interfaces:
    java.util.Enumeration

    public class SingleItemEnumeration
    extends java.lang.Object
    implements java.util.Enumeration
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.Object element  
    • Constructor Summary

      Constructors 
      Constructor Description
      SingleItemEnumeration​(java.lang.Object element)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasMoreElements()  
      java.lang.Object 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
    • Field Detail

      • element

        public java.lang.Object element
    • Constructor Detail

      • SingleItemEnumeration

        public SingleItemEnumeration​(java.lang.Object element)
    • Method Detail

      • hasMoreElements

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

        public java.lang.Object nextElement()
        Specified by:
        nextElement in interface java.util.Enumeration