public enum CloseableUtil extends Enum<CloseableUtil>
| Modifier and Type | Method and Description |
|---|---|
static void |
closeQuietly(AutoCloseable closeable)
Close a
Closeable, logging any exceptions thrown |
static CloseableUtil |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CloseableUtil[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static CloseableUtil[] values()
for (CloseableUtil c : CloseableUtil.values()) System.out.println(c);
public static CloseableUtil 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 static void closeQuietly(AutoCloseable closeable)
Closeable, logging any exceptions throwncloseable - the closeable to closeCopyright © 2023. All rights reserved.