public static final class EnumIO.ByMapping<E extends java.lang.Enum<E>> extends EnumIO<E>
EnumIO.ByMapping<E extends java.lang.Enum<E>>, EnumIO.ByName<E extends java.lang.Enum<E>>, EnumIO.Eager, EnumIO.Lazy, EnumIO.Wrapper| Constructor and Description |
|---|
ByMapping(java.lang.Class<E> enumClass,
IdStrategy strategy,
EnumMapping mapping) |
| Modifier and Type | Method and Description |
|---|---|
E |
readFrom(Input input)
Read the enum from the input.
|
void |
transfer(Pipe pipe,
Input input,
Output output,
int number,
boolean repeated)
Transfers the
Enum from the input to the output. |
void |
writeTo(Output output,
int number,
java.lang.Enum<?> e,
boolean repeated)
Writes the
Enum to the output. |
getEnumMapFactory, getEnumSetFactory, newEnumMap, newEnumSet, newSchema, resolveEnumClasspublic ByMapping(java.lang.Class<E> enumClass, IdStrategy strategy, EnumMapping mapping)
public E readFrom(Input input) throws java.io.IOException
EnumIOpublic void writeTo(Output output, int number, java.lang.Enum<?> e, boolean repeated) throws java.io.IOException
EnumIOEnum to the output.Copyright © 2009-2023. All Rights Reserved.