Package io.activej.serializer.impl
Class SerializerDefRegularCollection
java.lang.Object
io.activej.serializer.AbstractSerializerDef
io.activej.serializer.impl.AbstractSerializerDefCollection
io.activej.serializer.impl.SerializerDefRegularCollection
- All Implemented Interfaces:
SerializerDefWithNullable,SerializerDef
- Direct Known Subclasses:
SerializerDefEnumSet,SerializerDefHashSet,SerializerDefLinkedList,SerializerDefList,SerializerDefSet
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.activej.serializer.SerializerDef
SerializerDef.StaticDecoders, SerializerDef.StaticEncoders, SerializerDef.Visitor -
Field Summary
Fields inherited from class io.activej.serializer.impl.AbstractSerializerDefCollection
decodeType, elementType, encodeType, nullable, valueSerializer -
Constructor Summary
ConstructorsModifierConstructorDescriptionSerializerDefRegularCollection(SerializerDef valueSerializer, Class<?> encodeType, Class<?> decodeType) protectedSerializerDefRegularCollection(SerializerDef valueSerializer, Class<?> encodeType, Class<?> decodeType, @NotNull Class<?> elementType, boolean nullable) -
Method Summary
Modifier and TypeMethodDescriptionprotected @NotNull ExpressionaddToBuilder(Expression builder, Expression index, Expression element) protected @NotNull Expressionbuild(Expression builder) protected @NotNull ExpressioncreateBuilder(Expression length) protected @NotNull SerializerDefdoEnsureNullable(CompatibilityLevel compatibilityLevel) protected @NotNull ExpressiondoIterate(Expression collection, UnaryOperator<Expression> action) Methods inherited from class io.activej.serializer.impl.AbstractSerializerDefCollection
accept, decoder, doDecode, doEncode, encoder, ensureNullable, getDecodeType, getEncodeType, isInlineMethods inherited from class io.activej.serializer.AbstractSerializerDef
getVersionsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.activej.serializer.SerializerDef
defineDecoder, defineEncoder, getVersions
-
Constructor Details
-
SerializerDefRegularCollection
public SerializerDefRegularCollection(SerializerDef valueSerializer, Class<?> encodeType, Class<?> decodeType) -
SerializerDefRegularCollection
protected SerializerDefRegularCollection(SerializerDef valueSerializer, Class<?> encodeType, Class<?> decodeType, @NotNull @NotNull Class<?> elementType, boolean nullable)
-
-
Method Details
-
doEnsureNullable
- Specified by:
doEnsureNullablein classAbstractSerializerDefCollection
-
doIterate
@NotNull protected @NotNull Expression doIterate(Expression collection, UnaryOperator<Expression> action) - Specified by:
doIteratein classAbstractSerializerDefCollection
-
createBuilder
- Specified by:
createBuilderin classAbstractSerializerDefCollection
-
addToBuilder
@NotNull protected @NotNull Expression addToBuilder(Expression builder, Expression index, Expression element) - Specified by:
addToBuilderin classAbstractSerializerDefCollection
-
build
- Specified by:
buildin classAbstractSerializerDefCollection
-