saker.build Documentation TaskDoc JavaDoc Packages
public enum ReferencePolicy.ReferencePolicyCreator
Enumeration of possible reference policy implementations.
Enumeration constants
Reference polity for using soft references.
Reference polity for using weak references.
Methods
public <T> Reference<T>
create(T referent)
Creates a reference object for the given referent.
public <T> Reference<T>
create(T referent, ReferenceQueue<super T> queue)
Creates a reference object for the given referent and reference queue.
public static ReferencePolicyCreator
Returns the enum constant of this type with the specified name.
public static ReferencePolicyCreator[]
Returns an array containing the constants of this enum type, in the order they are declared.
Reference polity for using soft references.
Reference polity for using weak references.
public abstract <T> Reference<T> create(T referent)
Creates a reference object for the given referent.
TThe type of the referent.
referentThe referent.
The created reference.
public abstract <T> Reference<T> create(T referent, ReferenceQueue<super T> queue)
Creates a reference object for the given referent and reference queue.
TThe type of the referent.
referentThe referent.
queueThe reference queue.
The created reference.
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
IllegalArgumentExceptionIf this enum type has no constant with the specified name.
NullPointerExceptionIf the argument is null.
The enum constant with the specified name.
public static ReferencePolicyCreator[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ReferencePolicyCreator c : ReferencePolicyCreator.values())
    System.out.println(c);
An array containing the constants of this enum type, in the order they are declared.