Top Inners Fields Constructors Methods
org.codehaus.groovy.util

public sealed Enum ReferenceType

extends Enum<ReferenceType>
Class Inheritance
Imports
java.lang.ref.PhantomReference, .ReferenceQueue, .SoftReference, .WeakReference

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class
private static class
private static class

Field Summary

Modifier and TypeField and Description
public static final ReferenceType
public static final ReferenceType
public static final ReferenceType
public static final ReferenceType

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
protected abstract <T, V extends Finalizable> Reference<T, V>
createReference(T value, V handler, ReferenceQueue<T> queue)

public static ReferenceType
public static ReferenceType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

HARDback to summary
public static final ReferenceType HARD
PHANTOMback to summary
public static final ReferenceType PHANTOM
SOFTback to summary
public static final ReferenceType SOFT
WEAKback to summary
public static final ReferenceType WEAK

Constructor Detail

ReferenceTypeback to summary
private ReferenceType()

Method Detail

createReferenceback to summary
protected abstract <T, V extends Finalizable> Reference<T, V> createReference(T value, V handler, ReferenceQueue<T> queue)
valueOfback to summary
public static ReferenceType valueOf(String name)
valuesback to summary
public static ReferenceType[] values()
org.codehaus.groovy.util back to summary

private Class ReferenceType.HardRef<TT, V extends org.codehaus.groovy.util.Finalizable>

extends Object
implements Reference<TT, V extends Finalizable>
Class Inheritance
All Implemented Interfaces
org.codehaus.groovy.util.Reference

Field Summary

Modifier and TypeField and Description
private final V
private TT

Constructor Summary

AccessConstructor and Description
public
HardRef(TT referent, V handler, ReferenceQueue<? super TT> q)

Method Summary

Modifier and TypeMethod and Description
public void
public TT
public V
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

handlerback to summary
private final V handler
refback to summary
private TT ref

Constructor Detail

HardRefback to summary
public HardRef(TT referent, V handler, ReferenceQueue<? super TT> q)

Method Detail

clearback to summary
public void clear()

Implements org.codehaus.groovy.util.Reference.clear.

getback to summary
public TT get()

Implements org.codehaus.groovy.util.Reference.get.

getHandlerback to summary
public V getHandler()

Implements org.codehaus.groovy.util.Reference.getHandler.

org.codehaus.groovy.util back to summary

private Class ReferenceType.PhantomRef<TT, V extends org.codehaus.groovy.util.Finalizable>

extends PhantomReference<TT>
implements Reference<TT, V extends Finalizable>
Class Inheritance
All Implemented Interfaces
org.codehaus.groovy.util.Reference

Field Summary

Modifier and TypeField and Description
private final V

Constructor Summary

AccessConstructor and Description
public
PhantomRef(TT referent, V handler, ReferenceQueue<? super TT> q)

Method Summary

Modifier and TypeMethod and Description
public V
Inherited from java.lang.ref.PhantomReference:
get

Field Detail

handlerback to summary
private final V handler

Constructor Detail

PhantomRefback to summary
public PhantomRef(TT referent, V handler, ReferenceQueue<? super TT> q)

Method Detail

getHandlerback to summary
public V getHandler()

Implements org.codehaus.groovy.util.Reference.getHandler.

org.codehaus.groovy.util back to summary

private Class ReferenceType.SoftRef<TT, V extends org.codehaus.groovy.util.Finalizable>

extends SoftReference<TT>
implements Reference<TT, V extends Finalizable>
Class Inheritance
All Implemented Interfaces
org.codehaus.groovy.util.Reference

Field Summary

Modifier and TypeField and Description
private final V

Constructor Summary

AccessConstructor and Description
public
SoftRef(TT referent, V handler, ReferenceQueue<? super TT> q)

Method Summary

Modifier and TypeMethod and Description
public V
Inherited from java.lang.ref.SoftReference:
get

Field Detail

handlerback to summary
private final V handler

Constructor Detail

SoftRefback to summary
public SoftRef(TT referent, V handler, ReferenceQueue<? super TT> q)

Method Detail

getHandlerback to summary
public V getHandler()

Implements org.codehaus.groovy.util.Reference.getHandler.

org.codehaus.groovy.util back to summary

private Class ReferenceType.WeakRef<TT, V extends org.codehaus.groovy.util.Finalizable>

extends WeakReference<TT>
implements Reference<TT, V extends Finalizable>
Class Inheritance
All Implemented Interfaces
org.codehaus.groovy.util.Reference

Field Summary

Modifier and TypeField and Description
private final V

Constructor Summary

AccessConstructor and Description
public
WeakRef(TT referent, V handler, ReferenceQueue<? super TT> q)

Method Summary

Modifier and TypeMethod and Description
public V

Field Detail

handlerback to summary
private final V handler

Constructor Detail

WeakRefback to summary
public WeakRef(TT referent, V handler, ReferenceQueue<? super TT> q)

Method Detail

getHandlerback to summary
public V getHandler()

Implements org.codehaus.groovy.util.Reference.getHandler.