Modifier and Type | Class and Description |
---|---|
static interface |
SimpleType.Fn<I,O> |
Modifier and Type | Method and Description |
---|---|
static <T> Type<T> |
simpleImmutableTypeFrom(TypeName typeName,
SimpleType.Fn<T,byte[]> serialize,
SimpleType.Fn<byte[],T> deserialize) |
static <T> Type<T> |
simpleTypeFrom(TypeName typeName,
SimpleType.Fn<T,byte[]> serialize,
SimpleType.Fn<byte[],T> deserialize) |
java.util.Set<TypeCharacteristics> |
typeCharacteristics() |
TypeName |
typeName() |
TypeSerializer<T> |
typeSerializer() |
public static <T> Type<T> simpleTypeFrom(TypeName typeName, SimpleType.Fn<T,byte[]> serialize, SimpleType.Fn<byte[],T> deserialize)
public static <T> Type<T> simpleImmutableTypeFrom(TypeName typeName, SimpleType.Fn<T,byte[]> serialize, SimpleType.Fn<byte[],T> deserialize)
public TypeName typeName()
public TypeSerializer<T> typeSerializer()
typeSerializer
in interface Type<T>
TypeSerializer
that can serialize and deserialize this type.public java.util.Set<TypeCharacteristics> typeCharacteristics()
typeCharacteristics
in interface Type<T>
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.