T
- the type of the elements of the iterables being transcodedpublic class IterableCoder<T> extends IterableLikeCoder<T,java.lang.Iterable<T>>
Coder.Context, Coder.NonDeterministicException
Modifier | Constructor and Description |
---|---|
protected |
IterableCoder(Coder<T> elemCoder) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Iterable<T> |
decodeToIterable(java.util.List<T> decodedElements)
Builds an instance of
IterableT , this coder's associated Iterable -like
subtype, from a list of decoded elements. |
TypeDescriptor<java.lang.Iterable<T>> |
getEncodedTypeDescriptor()
Returns the
TypeDescriptor for the type encoded. |
static <T> IterableCoder<T> |
of(Coder<T> elemCoder) |
decode, encode, getCoderArguments, getElemCoder, isRegisterByteSizeObserverCheap, registerByteSizeObserver, verifyDeterministic
consistentWithEquals, equals, getComponents, hashCode, structuralValue, toString
decode, encode, getEncodedElementByteSize, verifyDeterministic, verifyDeterministic
public static <T> IterableCoder<T> of(Coder<T> elemCoder)
protected final java.lang.Iterable<T> decodeToIterable(java.util.List<T> decodedElements)
IterableLikeCoder
IterableT
, this coder's associated Iterable
-like
subtype, from a list of decoded elements.decodeToIterable
in class IterableLikeCoder<T,java.lang.Iterable<T>>
public TypeDescriptor<java.lang.Iterable<T>> getEncodedTypeDescriptor()
Coder
TypeDescriptor
for the type encoded.getEncodedTypeDescriptor
in class StructuredCoder<java.lang.Iterable<T>>