Class SingletonInstanceProvider<T>

java.lang.Object
tools.refinery.interpreter.matchers.util.SingletonInstanceProvider<T>
All Implemented Interfaces:
Supplier<T>, IProvider<T>

public class SingletonInstanceProvider<T> extends Object implements IProvider<T>
A provider implementation that always returns the same object instance.
  • Constructor Details

    • SingletonInstanceProvider

      public SingletonInstanceProvider(T instance)
  • Method Details

    • get

      public T get()
      Specified by:
      get in interface Supplier<T>