Enum DelpAnswer.Type

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<DelpAnswer.Type>, java.lang.constant.Constable
    Enclosing class:
    DelpAnswer

    public static enum DelpAnswer.Type
    extends java.lang.Enum<DelpAnswer.Type>
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.lang.Enum

        java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String text  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Type​(java.lang.String text)  
    • Method Summary

      Modifier and Type Method Description
      boolean getBooleanAnswer()  
      java.lang.Double getDoubleAnswer()  
      java.lang.String toString()  
      (package private) static DelpAnswer.Type typeForBoolean​(boolean booleanAnswer)  
      (package private) static DelpAnswer.Type typeForDouble​(java.lang.Double doubleAnswer)  
      static DelpAnswer.Type valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static DelpAnswer.Type[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • text

        private final java.lang.String text
    • Constructor Detail

      • Type

        private Type​(java.lang.String text)
    • Method Detail

      • values

        public static DelpAnswer.Type[] values()
        Returns an array containing the constants of this enum type, in the order they are declared.
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static DelpAnswer.Type valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • typeForBoolean

        static DelpAnswer.Type typeForBoolean​(boolean booleanAnswer)
      • typeForDouble

        static DelpAnswer.Type typeForDouble​(java.lang.Double doubleAnswer)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Enum<DelpAnswer.Type>
      • getBooleanAnswer

        public boolean getBooleanAnswer()
      • getDoubleAnswer

        public java.lang.Double getDoubleAnswer()