public class SetTypeCoercer<U,T> extends CollectionTypeCoercer<com.google.common.collect.ImmutableSet<U>,com.google.common.collect.ImmutableSet<T>,U,T>
ImmutableSet
.TypeCoercer.Traversal
elementTypeCoercer
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableSet<T> |
coerce(CellNameResolver cellRoots,
ProjectFilesystem filesystem,
ForwardRelativePath pathRelativeToProjectRoot,
TargetConfiguration targetConfiguration,
TargetConfiguration hostConfiguration,
com.google.common.collect.ImmutableSet<U> object) |
com.google.common.collect.ImmutableSet<U> |
coerceToUnconfigured(CellNameResolver cellRoots,
ProjectFilesystem filesystem,
ForwardRelativePath pathRelativeToProjectRoot,
Object object)
Coerce to a value for unconfigured graph.
|
com.google.common.reflect.TypeToken<com.google.common.collect.ImmutableSet<T>> |
getOutputType() |
com.google.common.reflect.TypeToken<com.google.common.collect.ImmutableSet<U>> |
getUnconfiguredType() |
boolean |
unconfiguredToConfiguredCoercionIsIdentity()
TypeCoercer.coerce(CellNameResolver, ProjectFilesystem, ForwardRelativePath, TargetConfiguration,
TargetConfiguration, Object) must be no-op when this returns true . |
fillConfigured, fillUnconfigured, hasElementClass, traverse
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkOutputAssignableTo, checkUnconfiguredAssignableTo, coerceBoth, concat, supportsConcatenation
public com.google.common.reflect.TypeToken<com.google.common.collect.ImmutableSet<T>> getOutputType()
public com.google.common.reflect.TypeToken<com.google.common.collect.ImmutableSet<U>> getUnconfiguredType()
public boolean unconfiguredToConfiguredCoercionIsIdentity()
TypeCoercer
TypeCoercer.coerce(CellNameResolver, ProjectFilesystem, ForwardRelativePath, TargetConfiguration,
TargetConfiguration, Object)
must be no-op when this returns true
.public com.google.common.collect.ImmutableSet<T> coerce(CellNameResolver cellRoots, ProjectFilesystem filesystem, ForwardRelativePath pathRelativeToProjectRoot, TargetConfiguration targetConfiguration, TargetConfiguration hostConfiguration, com.google.common.collect.ImmutableSet<U> object) throws CoerceFailedException
CoerceFailedException
- Input object cannot be coerced into the given type.public com.google.common.collect.ImmutableSet<U> coerceToUnconfigured(CellNameResolver cellRoots, ProjectFilesystem filesystem, ForwardRelativePath pathRelativeToProjectRoot, Object object) throws CoerceFailedException
TypeCoercer
CoerceFailedException