Class BuildReference<R>

java.lang.Object
jenkins.model.lazy.BuildReference<R>

public final class BuildReference<R> extends Object
Reference (by default a 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.

Since:
1.485 (but as of 1.548 not a SoftReference)
Author:
Kohsuke Kawaguchi
  • Constructor Details

    • BuildReference

      public BuildReference(String id, R referent)
  • Method Details