Top Fields Constructors Methods
com.fasterxml.jackson.dataformat.protobuf.schema

public Class ProtobufEnum

extends Object
Class Inheritance
Imports
java.util.Map

Field Summary

Modifier and TypeField and Description
protected final String
protected final boolean
_standardIndexing

Flag that indicates whether mapping from enum value and id is standard or not; standard means that first enum has value 0, and all following enums have value one bigger than preceding one.

protected final Map<String, Integer>

Constructor Summary

AccessConstructor and Description
public
ProtobufEnum(String name, Map<String, Integer> valuesByName, boolean standardIndexing)

Method Summary

Modifier and TypeMethod and Description
public Integer
public boolean
public Map<String, Integer>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_nameback to summary
protected final String _name
_standardIndexingback to summary
protected final boolean _standardIndexing

Flag that indicates whether mapping from enum value and id is standard or not; standard means that first enum has value 0, and all following enums have value one bigger than preceding one.

_valuesByNameback to summary
protected final Map<String, Integer> _valuesByName

Constructor Detail

ProtobufEnumback to summary
public ProtobufEnum(String name, Map<String, Integer> valuesByName, boolean standardIndexing)

Method Detail

findEnumback to summary
public Integer findEnum(String name)
usesStandardIndexingback to summary
public boolean usesStandardIndexing()
valueMappingback to summary
public Map<String, Integer> valueMapping()