com.kii.sdk.photocolle
Enum Score

java.lang.Object
  extended by java.lang.Enum<Score>
      extended by com.kii.sdk.photocolle.Score
All Implemented Interfaces:
Serializable, Comparable<Score>

public enum Score
extends Enum<Score>

The type of 5 step evaluation score.


Enum Constant Summary
SCORE_1
          the lowest score
SCORE_2
          the low score
SCORE_3
          the middle score
SCORE_4
          the high score
SCORE_5
          the highest score
 
Method Summary
static Score fromInt(int number)
          Get the score from int value.
 int getNumber()
          Get number of type.
static Score valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Score[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SCORE_1

public static final Score SCORE_1
the lowest score


SCORE_2

public static final Score SCORE_2
the low score


SCORE_3

public static final Score SCORE_3
the middle score


SCORE_4

public static final Score SCORE_4
the high score


SCORE_5

public static final Score SCORE_5
the highest score

Method Detail

values

public static Score[] 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 (Score c : Score.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Score 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

getNumber

public int getNumber()
Get number of type.

Returns:
number of type.

fromInt

public static Score fromInt(int number)
                     throws ParameterException
Get the score from int value.

Parameters:
number - source of score.
Returns:
the enum constant with the specified number.
Throws:
ParameterException - if this enum type has no constant with the specified number.