org.eclipse.emf.ecp.view.test.common.spi
Class GCCollectable
java.lang.Object
org.eclipse.emf.ecp.view.test.common.spi.GCCollectable
public class GCCollectable
- extends Object
Convenience class for expecting objects to be garbage collected. Because GC
is non-deterministic there's no time constrained guarantee, when
isCollectable
returns true.
- Author:
- emueller
GCCollectable
public GCCollectable(Object obj)
- Constructor.
- Parameters:
obj
- the object that is supposed to be finalized
isCollectable
public boolean isCollectable()
- Checks whether the the object contained by the
GCCollectable
may
be finalized.
- Returns:
true
, if the contained object may be finalized,
false
otherwise
getQueue
public ReferenceQueue<Object> getQueue()
isResult
public boolean isResult()
setResult
public void setResult(boolean result)
getPhantomRef
public PhantomReference<Object> getPhantomRef()
Copyright © 2015. All Rights Reserved.