public static enum Destroyable.Util extends Enum<Destroyable.Util>
Modifier and Type | Method and Description |
---|---|
static void |
destroyAll(Collection<? extends Destroyable> col)
Deprecated.
use
destroyAll(Collection, Class) instead |
static void |
destroyAll(Collection<? extends Destroyable> col,
Class<? extends Annotation> scope) |
static void |
tryDestroy(Object o) |
static void |
tryDestroy(Object o,
Class<? extends Annotation> scope) |
static void |
tryDestroyAll(Collection<?> col)
Deprecated.
|
static void |
tryDestroyAll(Collection<?> col,
Class<? extends Annotation> scope)
Helper method to destroy all
Destroyable elements, and close all Closeable elements in the collection specified |
static Destroyable.Util |
valueOf(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(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 destroyAll(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(Collection<? extends Destroyable> col, Class<? extends Annotation> scope)
@Deprecated public static void tryDestroyAll(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(Collection<?> col, Class<? extends 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(Object o)
public static void tryDestroy(Object o, Class<? extends Annotation> scope)
Copyright © 2014–2018 ActFramework. All rights reserved.