public class SortedSetTypeCoercer<U,T extends Comparable<? super T>> extends CollectionTypeCoercer<com.google.common.collect.ImmutableList<U>,com.google.common.collect.ImmutableSortedSet<T>,U,T>
ImmutableSortedSet
.TypeCoercer.Traversal
elementTypeCoercer
Constructor and Description |
---|
SortedSetTypeCoercer(TypeCoercer<U,T> elementTypeCoercer) |
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableSortedSet<T> |
coerce(CellNameResolver cellRoots,
ProjectFilesystem filesystem,
ForwardRelativePath pathRelativeToProjectRoot,
TargetConfiguration targetConfiguration,
TargetConfiguration hostConfiguration,
com.google.common.collect.ImmutableList<U> object) |
com.google.common.collect.ImmutableList<U> |
coerceToUnconfigured(CellNameResolver cellRoots,
ProjectFilesystem filesystem,
ForwardRelativePath pathRelativeToProjectRoot,
Object object)
Coerce to a value for unconfigured graph.
|
com.google.common.collect.ImmutableSortedSet<T> |
concat(Iterable<com.google.common.collect.ImmutableSortedSet<T>> elements)
Implementation of concatenation for this type.
|
com.google.common.reflect.TypeToken<com.google.common.collect.ImmutableSortedSet<T>> |
getOutputType() |
com.google.common.reflect.TypeToken<com.google.common.collect.ImmutableList<U>> |
getUnconfiguredType() |
fillConfigured, fillUnconfigured, hasElementClass, traverse
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkOutputAssignableTo, checkUnconfiguredAssignableTo, coerceBoth, supportsConcatenation, unconfiguredToConfiguredCoercionIsIdentity
public SortedSetTypeCoercer(TypeCoercer<U,T> elementTypeCoercer)
public com.google.common.reflect.TypeToken<com.google.common.collect.ImmutableSortedSet<T>> getOutputType()
public com.google.common.reflect.TypeToken<com.google.common.collect.ImmutableList<U>> getUnconfiguredType()
public com.google.common.collect.ImmutableList<U> coerceToUnconfigured(CellNameResolver cellRoots, ProjectFilesystem filesystem, ForwardRelativePath pathRelativeToProjectRoot, Object object) throws CoerceFailedException
TypeCoercer
CoerceFailedException
public com.google.common.collect.ImmutableSortedSet<T> coerce(CellNameResolver cellRoots, ProjectFilesystem filesystem, ForwardRelativePath pathRelativeToProjectRoot, TargetConfiguration targetConfiguration, TargetConfiguration hostConfiguration, com.google.common.collect.ImmutableList<U> object) throws CoerceFailedException
CoerceFailedException
- Input object cannot be coerced into the given type.public com.google.common.collect.ImmutableSortedSet<T> concat(Iterable<com.google.common.collect.ImmutableSortedSet<T>> elements)
TypeCoercer
null
indicates that concatenation
isn't supported by the type.null
if concatenation is not
supported for the type