Class EnumeratedValues


  • public class EnumeratedValues
    extends java.lang.Object
    This class represents a set of enumerated integer values.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String _rcsid  
      protected java.util.HashMap legalValues  
    • Constructor Summary

      Constructors 
      Constructor Description
      EnumeratedValues​(int[] values)
      Create enumerated values.
      EnumeratedValues​(java.lang.String commaList)
      Create for comma-separated list.
      EnumeratedValues​(java.lang.String[] values)
      Create from a list of semicolon-separated strings.
      EnumeratedValues​(java.util.ArrayList values)
      Create from arraylist.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean checkValue​(int value)  
      java.util.Iterator getValues()  
      int size()  
      • Methods inherited from class java.lang.Object

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

      • legalValues

        protected java.util.HashMap legalValues
    • Constructor Detail

      • EnumeratedValues

        public EnumeratedValues​(int[] values)
        Create enumerated values.
        Parameters:
        values - is the set of legal values.
      • EnumeratedValues

        public EnumeratedValues​(java.util.ArrayList values)
        Create from arraylist.
        Parameters:
        values - is the arraylist.
      • EnumeratedValues

        public EnumeratedValues​(java.lang.String[] values)
        Create from a list of semicolon-separated strings.
        Parameters:
        values - are the values, as strings
      • EnumeratedValues

        public EnumeratedValues​(java.lang.String commaList)
        Create for comma-separated list.
    • Method Detail

      • checkValue

        public boolean checkValue​(int value)
      • getValues

        public java.util.Iterator getValues()
      • size

        public int size()