public enum CardState extends Enum<CardState>
| Enum Constant and Description |
|---|
LEARNING_STEP1 |
LEARNING_STEP2 |
RECOVERING |
RELEARNING |
REVIEWING |
| Modifier and Type | Method and Description |
|---|---|
Difficulty |
difficultyFor(double difference) |
abstract List<Difficulty> |
getDifficulties() |
abstract Move |
move(Difficulty difficulty,
Move previous) |
static CardState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CardState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CardState LEARNING_STEP1
public static final CardState LEARNING_STEP2
public static final CardState REVIEWING
public static final CardState RELEARNING
public static final CardState RECOVERING
public static CardState[] values()
for (CardState c : CardState.values()) System.out.println(c);
public static CardState valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic abstract List<Difficulty> getDifficulties()
public abstract Move move(Difficulty difficulty, Move previous)
public Difficulty difficultyFor(double difference)
Copyright © 2017. All Rights Reserved.