public class ProtobufEnum extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
_name |
protected 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 Map<String,Integer> |
_valuesByName |
| Constructor and Description |
|---|
ProtobufEnum(String name,
Map<String,Integer> valuesByName,
boolean standardIndexing) |
| Modifier and Type | Method and Description |
|---|---|
Integer |
findEnum(String name) |
boolean |
usesStandardIndexing() |
Map<String,Integer> |
valueMapping() |
protected final String _name
protected final boolean _standardIndexing
Copyright © 2019 FasterXML. All rights reserved.