Package org.faktorips.runtime.caching
Class AbstractComputable<K,V>
- java.lang.Object
-
- org.faktorips.runtime.caching.AbstractComputable<K,V>
-
- All Implemented Interfaces:
IComputable<K,V>
public abstract class AbstractComputable<K,V> extends java.lang.Object implements IComputable<K,V>
Basic implementation ofIComputable, taking the value class as a parameter.Use
IComputable.of(Class, java.util.function.Function)instead of extending this class if your computation method can be expressed as a method reference or short lambda expression.
-
-
Constructor Summary
Constructors Constructor Description AbstractComputable(java.lang.Class<? super V> valueClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<? super V>getValueClass()Getting theClassof the value this computable produces.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.faktorips.runtime.caching.IComputable
compute
-
-
-
-
Constructor Detail
-
AbstractComputable
public AbstractComputable(java.lang.Class<? super V> valueClass)
-
-
Method Detail
-
getValueClass
public java.lang.Class<? super V> getValueClass()
Description copied from interface:IComputableGetting theClassof the value this computable produces.- Specified by:
getValueClassin interfaceIComputable<K,V>
-
-