Enum Class EDataAccessType

java.lang.Object
java.lang.Enum<EDataAccessType>
org.damap.base.enums.EDataAccessType
All Implemented Interfaces:
Serializable, Comparable<EDataAccessType>, Constable

public enum EDataAccessType extends Enum<EDataAccessType>
EDataAccessType class.
  • Enum Constant Details

  • Method Details

    • values

      public static EDataAccessType[] 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 EDataAccessType 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
    • toString

      public String toString()
      Overrides:
      toString in class Enum<EDataAccessType>
    • getValue

      public String getValue()
      Getter for the field value.
      Returns:
      a String object
    • getByValue

      public static EDataAccessType getByValue(String value)
      getByValue.
      Parameters:
      value - a String object
      Returns:
      a EDataAccessType object
    • compare

      public int compare(EDataAccessType other)
      Compares this EDataAccessType instance with another EDataAccessType to determine which is more restrictive. The order of restriction is defined as:
      • CLOSED is the most restrictive.
      • RESTRICTED is more restrictive than OPEN but less restrictive than CLOSED.
      • OPEN is the least restrictive.
      Parameters:
      other - the other EDataAccessType to compare to; can be null. If null, this instance is considered more restrictive.
      Returns:
      1 if this instance is more restrictive than other, -1 if this instance is less restrictive than other, and 0 if both instances are equal.