
org.infinispan.protostream.schema.Map Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of protostream Show documentation
Show all versions of protostream Show documentation
Users need to implement a marshaller object that interacts with a field writer/reader in order to serialize
state.
package org.infinispan.protostream.schema;
/**
* @since 5.0
*/
public class Map extends Field {
private final Type valueType;
Map(Builder builder) {
super(builder);
this.valueType = builder.valueType;
}
public Type getValueType() {
return valueType;
}
public static class Builder extends Field.Builder {
private final Type valueType;
Builder(FieldContainer parent, Type keyType, Type valueType, String name, int number) {
super(parent, keyType, name, number, true);
this.valueType = valueType;
}
@Override
protected Map create() {
return new Map(this);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy