Class SingletonInstanceProvider<T>
- java.lang.Object
-
- org.eclipse.viatra.query.runtime.matchers.util.SingletonInstanceProvider<T>
-
- All Implemented Interfaces:
java.util.function.Supplier<T>
,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 Description SingletonInstanceProvider(T instance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
get()
-