public final class Crystal extends Object
Constructor and Description |
---|
Crystal(String category,
String description) |
Modifier and Type | Method and Description |
---|---|
String |
asResource(int size) |
static String |
asResource(String description) |
boolean |
equals(Object o) |
static Crystal |
findByDescription(String description) |
static Crystal |
findByDescription(String description,
int size) |
String |
formatted() |
String |
getCategory() |
String |
getDescription() |
int |
hashCode() |
static IllegalArgumentException |
invalidDescription(String description) |
static IllegalArgumentException |
invalidDescription(String description,
Exception e) |
static int |
requireValidSize(int size) |
@Nonnull public static Crystal findByDescription(@Nonnull String description, int size)
public static int requireValidSize(int size)
@Nonnull public static IllegalArgumentException invalidDescription(@Nonnull String description)
@Nonnull public static IllegalArgumentException invalidDescription(@Nonnull String description, Exception e)