Enum Weight.Unit

java.lang.Object
java.lang.Enum<Weight.Unit>
com.igormaznitsa.meta.annotation.Weight.Unit
All Implemented Interfaces:
Serializable, Comparable<Weight.Unit>
Enclosing class:
Weight

public static enum Weight.Unit extends Enum<Weight.Unit>
Contains allowed units for execution weight. They are very subjective ones but allow to describe weight of a method in subjective units. NB! Keep in mind that the units are very subjective ones!
Since:
1.0
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    A Call of the method can break the universe.
    A Call like ask "Ultimate Question of Life, the Universe, and Everything".
    Lighter than light one.
    Very very extra light.
    Contains long loops or calls for hard methods.
    Light, for instance a getter with some condition of light logic.
    Normal weight for regular execution with conditions and short loops.
    Variable weight, can be changed in wide interval.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this type with the specified name.
    static Weight.Unit[]
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • VARIABLE

      public static final Weight.Unit VARIABLE
      Variable weight, can be changed in wide interval. Synonym of undefined.
      Since:
      1.0
    • FLUFF

      public static final Weight.Unit FLUFF
      Very very extra light.
      Since:
      1.0
    • EXTRALIGHT

      public static final Weight.Unit EXTRALIGHT
      Lighter than light one. May be just a getter for a field.
      Since:
      1.0
    • LIGHT

      public static final Weight.Unit LIGHT
      Light, for instance a getter with some condition of light logic.
      Since:
      1.0
    • NORMAL

      public static final Weight.Unit NORMAL
      Normal weight for regular execution with conditions and short loops.
      Since:
      1.0
    • HARD

      public static final Weight.Unit HARD
      Contains long loops or calls for hard methods.
      Since:
      1.0
    • EXTRAHARD

      public static final Weight.Unit EXTRAHARD
      A Call like ask "Ultimate Question of Life, the Universe, and Everything".
      Since:
      1.0
    • BLACK_HOLE

      public static final Weight.Unit BLACK_HOLE
      A Call of the method can break the universe.
      Since:
      1.0
  • Constructor Details

    • Unit

      private Unit()
  • Method Details

    • values

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

      public static Weight.Unit valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null