1 package com.atlassian.cache.impl;
2
3 import com.atlassian.util.concurrent.Supplier;
4
5 /**
6 * A supplier that holds a strong reference to its referent.
7 * Contrast with {@link WeakSupplier}
8 *
9 * @since v2.0.8
10 */
11 public class StrongSupplier<V> implements Supplier<V>
12 {
13 private final V referent;
14
15 public StrongSupplier(final V referent)
16 {
17 this.referent = referent;
18 }
19
20 public V get()
21 {
22 return referent;
23 }
24 }