Enum Class DigestAlgorithm

java.lang.Object
java.lang.Enum<DigestAlgorithm>
overit.geocall.util.DigestAlgorithm
All Implemented Interfaces:
Serializable, Comparable<DigestAlgorithm>, Constable

public enum DigestAlgorithm extends Enum<DigestAlgorithm>
Enum about all possible digest algorithms.
  • Enum Constant Details

  • Method Details

    • values

      public static DigestAlgorithm[] 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 DigestAlgorithm 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
    • getAlgorithm

      public String getAlgorithm()
      Returns a String about the algorithm.
      Returns:
      a String about the algorithm.
    • getOutFormat

      public String getOutFormat()
      Returns a String about the out format.
      Returns:
      a String about the out format.
    • fromString

      public static DigestAlgorithm fromString(@NotNull @NotNull String value) throws IllegalArgumentException

      Returns the DigestAlgorithm corresponding to the provided value.

      In case no DigestAlgorithm corresponding to the provided value is found, an IllegalArgumentException is thrown.
      Parameters:
      value - String about the device value.
      Returns:
      the DigestAlgorithm corresponding to the provided value.
      Throws:
      IllegalArgumentException - thrown in case of unexpected value.