Add FlagStorage.get
Dieser Commit ist enthalten in:
Ursprung
7ca44c0795
Commit
c6dbca7c4b
@ -41,8 +41,9 @@ public class FlagStorage {
|
||||
return flags.put(flagType, value) != value;
|
||||
}
|
||||
|
||||
public Flag.Value<?> get(final Flag flagType) {
|
||||
return flags.get(flagType);
|
||||
@SuppressWarnings("unchecked")
|
||||
public <T extends Enum<T> & Flag.Value<T>> Flag.Value<T> get(final Flag flagType) {
|
||||
return (Flag.Value<T>) flags.get(flagType);
|
||||
}
|
||||
|
||||
private void readKeys() {
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren