public class NumberTypeCoercer<T extends Number> extends LeafUnconfiguredOnlyCoercer<T>
TypeCoercer.Traversal
Constructor and Description |
---|
NumberTypeCoercer(Class<T> type) |
Modifier and Type | Method and Description |
---|---|
T |
coerceToUnconfigured(CellNameResolver cellRoots,
ProjectFilesystem filesystem,
ForwardRelativePath pathRelativeToProjectRoot,
Object object)
Coerce to a value for unconfigured graph.
|
com.google.common.reflect.TypeToken<T> |
getUnconfiguredType() |
coerce, getOutputType, unconfiguredToConfiguredCoercionIsIdentity
hasElementClass, traverse
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkOutputAssignableTo, checkUnconfiguredAssignableTo, coerceBoth, concat, supportsConcatenation
public com.google.common.reflect.TypeToken<T> getUnconfiguredType()
public T coerceToUnconfigured(CellNameResolver cellRoots, ProjectFilesystem filesystem, ForwardRelativePath pathRelativeToProjectRoot, Object object) throws CoerceFailedException
TypeCoercer
CoerceFailedException