Enum ReferenceLevel
- java.lang.Object
-
- java.lang.Enum<ReferenceLevel>
-
- org.cyclos.model.users.references.ReferenceLevel
-
- All Implemented Interfaces:
Serializable,Comparable<ReferenceLevel>,HasMessageKey
public enum ReferenceLevel extends Enum<ReferenceLevel> implements HasMessageKey
The level of the reference given by a member to another
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ReferenceLevelgetByScore(float score)Returns a reference by scoreMessageKeygetMessageKey()intgetPoints()booleanisNegative()booleanisPositive()static ReferenceLevelvalueOf(String name)Returns the enum constant of this type with the specified name.static ReferenceLevel[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VERY_GOOD
public static final ReferenceLevel VERY_GOOD
-
GOOD
public static final ReferenceLevel GOOD
-
NEUTRAL
public static final ReferenceLevel NEUTRAL
-
BAD
public static final ReferenceLevel BAD
-
VERY_BAD
public static final ReferenceLevel VERY_BAD
-
NA
public static final ReferenceLevel NA
-
-
Method Detail
-
values
public static ReferenceLevel[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ReferenceLevel c : ReferenceLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ReferenceLevel 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 nameNullPointerException- if the argument is null
-
getByScore
public static ReferenceLevel getByScore(float score)
Returns a reference by score
-
getMessageKey
public MessageKey getMessageKey()
- Specified by:
getMessageKeyin interfaceHasMessageKey
-
getPoints
public int getPoints()
-
isNegative
public boolean isNegative()
-
isPositive
public boolean isPositive()
-
-