It is useful for users to use pre-defined acquisition costs, this
adds a utility so users do not have to call Costs.getValue().
Change-Id: Ib44352784076493a317dcee0aa64d108301a6305
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
return new PotentialSchemaSource<>(sourceIdentifier, representation, cost);
}
+ public static <T extends SchemaSourceRepresentation> PotentialSchemaSource<T> create(
+ final SourceIdentifier sourceIdentifier, final Class<? extends T> representation, final Costs cost) {
+ return new PotentialSchemaSource<>(sourceIdentifier, representation, cost.getValue());
+ }
+
/**
* Return a cached reference to an object equal to this object.
*