Enum Primitive

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Primitive>

    public enum Primitive
    extends java.lang.Enum<Primitive>
    • Field Detail

      • type

        public final java.lang.String type
    • Constructor Detail

      • Primitive

        private Primitive​(java.lang.String type)
    • Method Detail

      • values

        public static Primitive[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Primitive c : Primitive.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Primitive 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
      • getName

        public java.lang.String getName()
      • getWrapperName

        public java.lang.String getWrapperName()
      • isIntPrimitive

        public boolean isIntPrimitive()
      • isFloatingPoint

        public boolean isFloatingPoint()
      • isBytePrimitive

        public boolean isBytePrimitive()
      • isBooleanPrimitive

        public boolean isBooleanPrimitive()
      • isCharPrimitive

        public boolean isCharPrimitive()
      • isShortPrimitive

        public boolean isShortPrimitive()
      • isFloatPrimitive

        public boolean isFloatPrimitive()
      • isDoublePrimitive

        public boolean isDoublePrimitive()
      • isLongPrimitive

        public boolean isLongPrimitive()
      • hasSpecializedStream

        public boolean hasSpecializedStream()
      • isByteOrShortOrCharPrimitive

        public boolean isByteOrShortOrCharPrimitive()
      • isFloatOrDoublePrimitive

        public boolean isFloatOrDoublePrimitive()