public enum BookStatus extends Enum<BookStatus>
| Enum Constant and Description |
|---|
ALREADY_READ |
READING |
UNKNOWN |
UNREAD |
WISH_TO_READ |
| Modifier and Type | Method and Description |
|---|---|
static BookStatus |
fromId(int id) |
int |
getId() |
static BookStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BookStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BookStatus UNKNOWN
public static final BookStatus WISH_TO_READ
public static final BookStatus ALREADY_READ
public static final BookStatus READING
public static final BookStatus UNREAD
public static BookStatus[] values()
for (BookStatus c : BookStatus.values()) System.out.println(c);
public static BookStatus 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 static BookStatus fromId(int id)
public int getId()
Copyright © 2016. All rights reserved.