public abstract class Refs extends Object
Modifier and Type | Method and Description |
---|---|
static <T> StrongRef<T> |
strong(T referent)
Creates a strong reference to the given referent.
|
static <T> WeakRef<T> |
weak(T referent)
Creates a weak reference to the given referent.
|
public static <T> StrongRef<T> strong(T referent)
referent
- the referent.public static <T> WeakRef<T> weak(T referent)
referent
- the referent.Copyright © 2015. All rights reserved.