mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-25 06:17:59 +01:00
24 lines
456 B
Java
24 lines
456 B
Java
package com.minelittlepony.unicopia.enchanting;
|
|
|
|
public enum PageState {
|
|
LOCKED,
|
|
UNREAD,
|
|
READ;
|
|
|
|
public boolean isLocked() {
|
|
return this == LOCKED;
|
|
}
|
|
|
|
public boolean isUnread() {
|
|
return this == UNREAD;
|
|
}
|
|
|
|
public static PageState of(String s) {
|
|
try {
|
|
if (s != null)
|
|
return valueOf(s.toUpperCase());
|
|
} catch (Throwable e) {}
|
|
|
|
return PageState.LOCKED;
|
|
}
|
|
}
|