org.eclipse.viatra.query.runtime.matchers.util

## Class SingletonInstanceProvider<T>

- java.lang.Object
- - org.eclipse.viatra.query.runtime.matchers.util.SingletonInstanceProvider<T>

- All Implemented Interfaces:
    IProvider<T>
  Direct Known Subclasses:
    SingletonQueryGroupProvider, SingletonQuerySpecificationProvider

      public class SingletonInstanceProvider<T>
      extends java.lang.Object
      implements IProvider<T>

  A provider implementation that always returns the same object instance.

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface org.eclipse.viatra.query.runtime.matchers.util.IProvider

      `IProvider.ProvidedValueFunction`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `SingletonInstanceProvider(T instance)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `T` | `get()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SingletonInstanceProvider

          public SingletonInstanceProvider(T instance)

  - ### Method Detail

    - #### get

          public T get()

      Specified by:
        `get` in interface `IProvider<T>`