public static enum Destroyable.Util extends java.lang.Enum<Destroyable.Util>
Modifier and Type | Method and Description |
---|---|
static void |
destroyAll(java.util.Collection<? extends Destroyable> col)
Deprecated.
use
destroyAll(Collection, Class) instead |
static void |
destroyAll(java.util.Collection<? extends Destroyable> col,
java.lang.Class<? extends java.lang.annotation.Annotation> scope) |
static void |
tryDestroy(java.lang.Object o) |
static void |
tryDestroy(java.lang.Object o,
java.lang.Class<? extends java.lang.annotation.Annotation> scope) |
static void |
tryDestroyAll(java.util.Collection<?> col)
Deprecated.
|
static void |
tryDestroyAll(java.util.Collection<?> col,
java.lang.Class<? extends java.lang.annotation.Annotation> scope)
Helper method to destroy all
Destroyable elements, and close all Closeable elements in the collection specified |
static Destroyable.Util |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Destroyable.Util[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static Destroyable.Util[] values()
for (Destroyable.Util c : Destroyable.Util.values()) System.out.println(c);
public static Destroyable.Util valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static void destroyAll(java.util.Collection<? extends Destroyable> col)
destroyAll(Collection, Class)
insteadHelper method to destroy all elements in a in a Destroyable
collection
col
- the collection contains Destroyable
elementspublic static void destroyAll(java.util.Collection<? extends Destroyable> col, java.lang.Class<? extends java.lang.annotation.Annotation> scope)
@Deprecated public static void tryDestroyAll(java.util.Collection<?> col)
Helper method to destroy all Destroyable
elements, and close all Closeable
elements in the collection specified
col
- the collection might contains Destroyable
and Closeable
elementspublic static void tryDestroyAll(java.util.Collection<?> col, java.lang.Class<? extends java.lang.annotation.Annotation> scope)
Helper method to destroy all Destroyable
elements, and close all Closeable
elements in the collection specified
col
- the collection might contains Destroyable
and Closeable
elementsscope
- specify the scope annotation.public static void tryDestroy(java.lang.Object o)
public static void tryDestroy(java.lang.Object o, java.lang.Class<? extends java.lang.annotation.Annotation> scope)
Copyright © 2014–2017 ActFramework. All rights reserved.