public interface OpenableCloseable
open() moves from closed to
open and close() from open to close. What operations can be performed in each state
is not specified by this interface, only the state machine.
Openable / closeable objects are always initialized as closed.
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the object.
|
void |
open()
Opens the object.
|