public class CollectionCoder<T> extends IterableLikeCoder<T,Collection<T>>
Coder.Context, Coder.NonDeterministicException| Modifier | Constructor and Description |
|---|---|
protected |
CollectionCoder(Coder<T> elemCoder) |
| Modifier and Type | Method and Description |
|---|---|
protected Collection<T> |
decodeToIterable(List<T> decodedElements)
Builds an instance of
IterableT, this coder's associated Iterable-like
subtype, from a list of decoded elements. |
static <T> List<Object> |
getInstanceComponents(Collection<T> exampleValue)
Returns the first element in this collection if it is non-empty,
otherwise returns
null. |
static <T> CollectionCoder<T> |
of(Coder<T> elemCoder) |
static CollectionCoder<?> |
of(List<Object> components) |
decode, encode, getCoderArguments, getElemCoder, getInstanceComponentsHelper, isRegisterByteSizeObserverCheap, registerByteSizeObserver, verifyDeterministicasCloudObject, consistentWithEquals, equals, getAllowedEncodings, getComponents, getEncodedElementByteSize, getEncodingId, hashCode, structuralValue, toString, verifyDeterministic, verifyDeterministicpublic static <T> CollectionCoder<T> of(Coder<T> elemCoder)
protected final Collection<T> decodeToIterable(List<T> decodedElements)
IterableT, this coder's associated Iterable-like
subtype, from a list of decoded elements.decodeToIterable in class IterableLikeCoder<T,Collection<T>>List is a subtype of
Collection.public static CollectionCoder<?> of(List<Object> components)
public static <T> List<Object> getInstanceComponents(Collection<T> exampleValue)
null.