All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.protostream.schema.Map Maven / Gradle / Ivy

Go to download

Users need to implement a marshaller object that interacts with a field writer/reader in order to serialize state.

There is a newer version: 14.0.0.CR2
Show newest version
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