Package | Description |
---|---|
org.wildfly.common.ref |
Classes which implement reference types which can be cleaned up automatically by a background thread.
|
Modifier and Type | Method and Description |
---|---|
Reference.Type |
WeakReference.getType() |
Reference.Type |
SoftReference.getType() |
Reference.Type |
StrongReference.getType() |
Reference.Type |
Reference.getType()
Get the type of the reference.
|
Reference.Type |
PhantomReference.getType() |
static Reference.Type |
Reference.Type.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Reference.Type[] |
Reference.Type.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static <T,A> Reference<T,A> |
References.create(Reference.Type type,
T value,
A attachment)
Create a reference of a given type with the provided value and attachment.
|
static <T,A> Reference<T,A> |
References.create(Reference.Type type,
T value,
A attachment,
Reaper<T,A> reaper)
Create a reference of a given type with the provided value and attachment.
|
static <T,A> Reference<T,A> |
References.create(Reference.Type type,
T value,
A attachment,
java.lang.ref.ReferenceQueue<? super T> referenceQueue)
Create a reference of a given type with the provided value and attachment.
|
boolean |
Reference.Type.in(Reference.Type... values)
Determine whether this instance is equal to one of the given instances.
|
boolean |
Reference.Type.in(Reference.Type v1)
Determine whether this instance is equal to one of the given instances.
|
boolean |
Reference.Type.in(Reference.Type v1,
Reference.Type v2)
Determine whether this instance is equal to one of the given instances.
|
boolean |
Reference.Type.in(Reference.Type v1,
Reference.Type v2,
Reference.Type v3)
Determine whether this instance is equal to one of the given instances.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
Reference.Type.isFull(java.util.EnumSet<Reference.Type> set)
Determine whether the given set is fully populated (or "full"), meaning it contains all possible values.
|
Copyright © 2015 JBoss, a division of Red Hat, Inc.