public enum CloseableObjectState extends Enum<CloseableObjectState>
| Modifier and Type | Field and Description |
|---|---|
static EnumSet<CloseableObjectState> |
CLOSED_STATES |
static EnumSet<CloseableObjectState> |
OPEN_STATES |
static EnumSet<CloseableObjectState> |
POST_OPENING_STATES |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isClosed() |
boolean |
isOpen() |
static CloseableObjectState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CloseableObjectState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CloseableObjectState Closed
public static final CloseableObjectState Opening
public static final CloseableObjectState Open
public static final CloseableObjectState Closing
public static final EnumSet<CloseableObjectState> CLOSED_STATES
public static final EnumSet<CloseableObjectState> OPEN_STATES
public static final EnumSet<CloseableObjectState> POST_OPENING_STATES
public static CloseableObjectState[] values()
for (CloseableObjectState c : CloseableObjectState.values()) System.out.println(c);
public static CloseableObjectState valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean isClosed()
public boolean isOpen()
Copyright © 2026. All rights reserved.