rcf.core.util.reference
Enum Reference.Type

java.lang.Object
  extended by java.lang.Enum<Reference.Type>
      extended by rcf.core.util.reference.Reference.Type
All Implemented Interfaces:
Serializable, Comparable<Reference.Type>
Enclosing interface:
Reference<T>

public static enum Reference.Type
extends Enum<Reference.Type>

TODO: Javadoc

TODO: Unit tests, Code review, Javadoc review, Seal/Finalize TODO: equals, hashCode, toString

Version:
$Revision: 1.8 $
Author:
Greg Gibeling

Enum Constant Summary
Phantom
          TODO: Javadoc
Soft
          TODO: Javadoc
Strong
          TODO: Javadoc
Weak
          TODO: Javadoc
 
Field Summary
protected  SoftReference<rcf.core.util.filter.Filter<Reference.Type>> filter
          TODO: Javadoc A soft reference to filter for this reference type.
 
Method Summary
 rcf.core.util.filter.Filter<Reference.Type> filter()
          TODO: Javadoc
<T> rcf.core.util.filter.Filter<Reference<T>>
filter(T o)
          TODO: Javadoc
static Reference.Type valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Reference.Type[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Phantom

public static final Reference.Type Phantom
TODO: Javadoc


Weak

public static final Reference.Type Weak
TODO: Javadoc


Soft

public static final Reference.Type Soft
TODO: Javadoc


Strong

public static final Reference.Type Strong
TODO: Javadoc

Field Detail

filter

protected SoftReference<rcf.core.util.filter.Filter<Reference.Type>> filter
TODO: Javadoc A soft reference to filter for this reference type.

Method Detail

values

public static final Reference.Type[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(Reference.Type c : Reference.Type.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static Reference.Type valueOf(String name)
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.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name

filter

public final rcf.core.util.filter.Filter<Reference.Type> filter()
TODO: Javadoc

Returns:

filter

public final <T> rcf.core.util.filter.Filter<Reference<T>> filter(T o)
TODO: Javadoc

Returns: