Class SwitchDataEnumeration

  • All Implemented Interfaces:
    java.util.Enumeration<java.lang.Integer>

    class SwitchDataEnumeration
    extends java.lang.Object
    implements java.util.Enumeration<java.lang.Integer>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int current_index  
      private java.lang.Integer[] table  
    • Constructor Summary

      Constructors 
      Constructor Description
      SwitchDataEnumeration​(java.util.Hashtable<java.lang.Integer,​Label> tab)
      Create a new enumeration from the hashtable.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasMoreElements()
      Are there more keys to return?
      java.lang.Integer nextElement()
      Return the next key.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • table

        private java.lang.Integer[] table
      • current_index

        private int current_index
    • Constructor Detail

      • SwitchDataEnumeration

        SwitchDataEnumeration​(java.util.Hashtable<java.lang.Integer,​Label> tab)
        Create a new enumeration from the hashtable. Each key in the hash table will be an Integer, with the value being a label. The enumeration returns the keys in sorted order.
    • Method Detail

      • hasMoreElements

        public boolean hasMoreElements()
        Are there more keys to return?
        Specified by:
        hasMoreElements in interface java.util.Enumeration<java.lang.Integer>
      • nextElement

        public java.lang.Integer nextElement()
        Return the next key.
        Specified by:
        nextElement in interface java.util.Enumeration<java.lang.Integer>