Class CachedDataSource<T>
- java.lang.Object
-
- org.processmining.specpp.componenting.data.CachedDataSource<T>
-
- All Implemented Interfaces:
java.util.function.Supplier<T>,DataSource<T>
public class CachedDataSource<T> extends java.lang.Object implements DataSource<T>
-
-
Constructor Summary
Constructors Constructor Description CachedDataSource(DataSource<T> supplier)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()TgetData()static <T> CachedDataSource<T>of(DataSource<T> supplier)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.processmining.specpp.componenting.data.DataSource
get
-
-
-
-
Constructor Detail
-
CachedDataSource
public CachedDataSource(DataSource<T> supplier)
-
-
Method Detail
-
of
public static <T> CachedDataSource<T> of(DataSource<T> supplier)
-
getData
public T getData()
- Specified by:
getDatain interfaceDataSource<T>
-
clear
public void clear()
-
-