public class FileBoolean extends Object
This is convenient when you need to store just a few bits of infrequently accessed information as you can forget the explicit persistence of it. This class masks I/O problem, so if the persistence fails, you'll get no error report.
Constructor and Description |
---|
FileBoolean(Class owner,
String name) |
FileBoolean(File file) |
Modifier and Type | Method and Description |
---|---|
boolean |
fastGet()
|
boolean |
get()
Gets the current state.
|
boolean |
isOff() |
boolean |
isOn() |
void |
off() |
void |
on() |
void |
set(boolean b) |
public FileBoolean(File file)
Copyright © 2004–2022. All rights reserved.