public final class BuildReference<R> extends Object
SoftReference) to a build object.
To be able to re-retrieve the referent in case it is lost, this class
remembers its ID (the job name is provided by the context because a BuildReference
belongs to one and only AbstractLazyLoadRunMap.)
We use this ID for equality/hashCode so that we can have a collection of BuildReference
and find things in it.
SoftReference)| Modifier and Type | Class and Description |
|---|---|
static class |
BuildReference.DefaultHolderFactory
Default factory if none other are installed.
|
static interface |
BuildReference.Holder<R>
An abstraction of
Reference. |
static interface |
BuildReference.HolderFactory
Extensible factory for creating build references.
|
| Constructor and Description |
|---|
BuildReference(String id,
R referent) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
R |
get()
Gets the build if still in memory.
|
int |
hashCode() |
String |
toString() |
@CheckForNull public R get()
BuildReference.Holder.get()Copyright © 2019. All rights reserved.