public interface BooleanValue
Implementations may store the value in different formats or mediums. For example, the value could be stored in binary format or text format, in memory or on disk.
The methods in this interface may throw an IllegalStateException if the underlying storage medium is not in a state where the operation can be performed. For example, if the storage medium has been closed or if it does not have enough capacity to store the value.
The getValue method may also throw a BufferUnderflowException if there is not enough data available to read the value.
BooleanValue,
ByteValue,
CharValue,
DoubleValue,
FloatValue,
IntValue,
LongValue,
ShortValue,
StringValue,
LongArrayValues,
IntArrayValues| Modifier and Type | Method and Description |
|---|---|
boolean |
getValue()
Retrieves the boolean value.
|
void |
setValue(boolean value)
Sets the boolean value.
|
boolean getValue()
throws IllegalStateException,
BufferUnderflowException
BufferUnderflowException - If there is not enough data available to read the valueClosedIllegalStateException - If the resource has been released or closed.ThreadingIllegalStateException - If this resource was accessed by multiple threads in an unsafe wayIllegalStateExceptionvoid setValue(boolean value)
throws IllegalStateException
value - the boolean value to setClosedIllegalStateException - If the resource has been released or closed.ThreadingIllegalStateException - If this resource was accessed by multiple threads in an unsafe wayIllegalStateExceptionCopyright © 2024. All rights reserved.