Package com.igormaznitsa.meta.annotation
Enum Weight.Unit
- All Implemented Interfaces:
Serializable
,Comparable<Weight.Unit>
- Enclosing class:
Weight
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 ConstantsEnum ConstantDescriptionA 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 -
Method Summary
Modifier and TypeMethodDescriptionstatic Weight.Unit
Returns the enum constant of this type with the specified name.static Weight.Unit[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
VARIABLE
Variable weight, can be changed in wide interval. Synonym of undefined.- Since:
- 1.0
-
FLUFF
Very very extra light.- Since:
- 1.0
-
EXTRALIGHT
Lighter than light one. May be just a getter for a field.- Since:
- 1.0
-
LIGHT
Light, for instance a getter with some condition of light logic.- Since:
- 1.0
-
NORMAL
Normal weight for regular execution with conditions and short loops.- Since:
- 1.0
-
HARD
Contains long loops or calls for hard methods.- Since:
- 1.0
-
EXTRAHARD
A Call like ask "Ultimate Question of Life, the Universe, and Everything".- Since:
- 1.0
-
BLACK_HOLE
A Call of the method can break the universe.- Since:
- 1.0
-
-
Constructor Details
-
Unit
private Unit()
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-