View Javadoc
1   package com.atlassian.cache.impl;
2   
3   import java.lang.ref.WeakReference;
4   
5   import java.util.function.Supplier;
6   
7   /**
8    * A supplier that holds a weak reference to its referent.
9    * Contrast with {@link StrongSupplier}
10   *
11   * @since v2.0.8
12   */
13  public class WeakSupplier<V> extends WeakReference<V> implements Supplier<V>
14  {
15      public WeakSupplier(final V referent)
16      {
17          super(referent);
18      }
19  }