- All Implemented Interfaces:
Flag
- Enclosing interface:
- Flag
public static final class Flag.Simple
extends Object
implements Flag
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.util.Flag
Flag.Simple
-
Method Summary
| Modifier and Type |
Method |
Description |
boolean |
isOff() |
|
boolean |
isOn() |
|
boolean |
off() |
|
boolean |
on() |
|
boolean |
set(boolean state) |
|
boolean |
toggle() |
|
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
public final boolean set(boolean state)
- Specified by:
set in interface Flag
-
public final boolean isOn()
- Specified by:
isOn in interface Flag
-
public final boolean isOff()
- Specified by:
isOff in interface Flag
-
public final boolean on()
- Specified by:
on in interface Flag
-
public final boolean off()
- Specified by:
off in interface Flag
-
public final boolean toggle()
- Specified by:
toggle in interface Flag