Enum Class DatasetSizeRange

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

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

  • Method Details

    • values

      public static DatasetSizeRange[] 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 DatasetSizeRange 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
    • getMinSize

      public long getMinSize()
      Getter for the field minSize.
      Returns:
      a long
    • getMaxSize

      public long getMaxSize()
      Getter for the field maxSize.
      Returns:
      a long
    • getLabel

      public String getLabel()
      Getter for the field label.
      Returns:
      a String object
    • getLabelForSize

      public static String getLabelForSize(long size)
      Retrieves the label for a given size.
      Parameters:
      size - the size to evaluate
      Returns:
      the corresponding label of the size range