Enum Class PropertyType

java.lang.Object
java.lang.Enum<PropertyType>
foundation.omni.PropertyType
All Implemented Interfaces:
Serializable, Comparable<PropertyType>, java.lang.constant.Constable

public enum PropertyType extends Enum<PropertyType>
Omni Protocol Property Type.
  • Enum Constant Details

  • Field Details

  • Method Details

    • values

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

      public static PropertyType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • of

      public static PropertyType of(boolean isDivisible)
      PropertyType from `isDivisible` boolean
      Parameters:
      isDivisible - true if divisible, false if indivisible
      Returns:
      corresponding PropertyType
    • valueOf

      public static PropertyType valueOf(int i)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      i - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • value

      public int value()
      Returns:
      PropertyType int value
    • divisible

      public boolean divisible()
      Returns:
      true if DIVISIBLE
    • getValue

      @Deprecated public int getValue()
      Deprecated.
      Returns:
      PropertyType int value
    • isDivisible

      @Deprecated public boolean isDivisible()
      Deprecated.
      Returns:
      true if DIVISIBLE