public class ClassBasedComputationIdentifier<ResultType extends ComputeResult> extends Object implements ComputationIdentifier<ResultType>
ComputationIdentifier
that identifies uniqueness by the class of the ComputeKey
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Class<ResultType> |
getResultTypeClass() |
int |
hashCode() |
static <ResultType extends ComputeResult> |
of(Class<? extends ComputeKey<ResultType>> clazz,
Class<ResultType> resultTypeClass) |
String |
toString() |
public static <ResultType extends ComputeResult> ClassBasedComputationIdentifier<ResultType> of(Class<? extends ComputeKey<ResultType>> clazz, Class<ResultType> resultTypeClass)
ResultType
- the type of the result of the computation this identifiesclazz
- the class of the keyresultTypeClass
- the result class typeComputationIdentifier
for the given key and result classes. The instance is
possibly interned.public Class<ResultType> getResultTypeClass()
getResultTypeClass
in interface ComputationIdentifier<ResultType extends ComputeResult>
GraphComputation