KeyType1
- the origin key typeResultType2
- the target result typepublic abstract class ComposedKey<KeyType1 extends ComputeKey<?>,ResultType2 extends ComputeResult> extends Object implements ComputeKey<ComposedResult<ComputeKey<ResultType2>,ResultType2>>
ComputeKey
for a composed computationConstructor and Description |
---|
ComposedKey() |
Modifier and Type | Method and Description |
---|---|
protected void |
check() |
ComputationIdentifier<ComposedResult<ComputeKey<ResultType2>,ResultType2>> |
getIdentifier() |
abstract KeyType1 |
getOriginKey() |
abstract Class<ResultType2> |
getTargetResultClass() |
static <KeyType1 extends ComputeKey<?>,ResultType2 extends ComputeResult> |
of(KeyType1 originKey,
Class<ResultType2> targetResultClass) |
public abstract KeyType1 getOriginKey()
public abstract Class<ResultType2> getTargetResultClass()
@Value.Derived public ComputationIdentifier<ComposedResult<ComputeKey<ResultType2>,ResultType2>> getIdentifier()
getIdentifier
in interface ComputeKey<ComposedResult<ComputeKey<ResultType2 extends ComputeResult>,ResultType2 extends ComputeResult>>
ComputationIdentifier
to the same GraphComputation
.@Value.Check protected void check()
public static <KeyType1 extends ComputeKey<?>,ResultType2 extends ComputeResult> ComposedKey<KeyType1,ResultType2> of(KeyType1 originKey, Class<ResultType2> targetResultClass)