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

org.infinispan.protostream.impl.parser.mappers.ExtendMapper Maven / Gradle / Ivy

There is a newer version: 9.1.7.Final
Show newest version
package org.infinispan.protostream.impl.parser.mappers;

import static org.infinispan.protostream.impl.parser.mappers.Mappers.FIELD_LIST_MAPPER;

import org.infinispan.protostream.descriptors.ExtendDescriptor;

import com.squareup.protoparser.ExtendElement;

/**
 * @author gustavonalle
 * @since 2.0
 */
final class ExtendMapper implements Mapper {

   @Override
   public ExtendDescriptor map(ExtendElement input) {
      return new ExtendDescriptor.Builder()
            .withName(input.name())
            .withFullName(input.qualifiedName())
            .withFields(FIELD_LIST_MAPPER.map(input.fields()))
            .build();
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy