Package jmri
Class BooleanPermission.BooleanValue
- java.lang.Object
-
- jmri.BooleanPermission.BooleanValue
-
- All Implemented Interfaces:
PermissionValue
- Enclosing interface:
- BooleanPermission
public static class BooleanPermission.BooleanValue extends java.lang.Object implements PermissionValue
-
-
Field Summary
Fields Modifier and Type Field Description static BooleanPermission.BooleanValue
FALSE
static BooleanPermission.BooleanValue
TRUE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
get()
static BooleanPermission.BooleanValue
get(boolean value)
boolean
isDefault()
Is this the default value of this permission?java.lang.String
toString()
-
-
-
Field Detail
-
TRUE
public static final BooleanPermission.BooleanValue TRUE
-
FALSE
public static final BooleanPermission.BooleanValue FALSE
-
-
Method Detail
-
get
public boolean get()
-
get
public static BooleanPermission.BooleanValue get(boolean value)
-
isDefault
public boolean isDefault()
Description copied from interface:PermissionValue
Is this the default value of this permission?- Specified by:
isDefault
in interfacePermissionValue
- Returns:
- true if it's the default, false otherwise
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-