com.fasterxml.jackson.dataformat.protobuf.schema

## Class EnumLookup

- java.lang.Object
- - com.fasterxml.jackson.dataformat.protobuf.schema.EnumLookup

-     public abstract class EnumLookup
      extends Object

  Helper class used for doing efficient lookups of protoc enums given enum name caller provides. Ideally this would be avoided, but at this point translation is unfortunately necessary.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `EnumLookup()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static EnumLookup` | `construct(ProtobufEnum enumDef)`
    `static EnumLookup` | `empty()`
    `abstract String` | `findEnumByIndex(int index)`
    `abstract int` | `findEnumIndex(com.fasterxml.jackson.core.SerializableString key)`
    `abstract int` | `findEnumIndex(String key)`
    `abstract Collection<String>` | `getEnumValues()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### EnumLookup

          public EnumLookup()

  - ### Method Detail

    - #### empty

          public static EnumLookup empty()

    - #### construct

          public static EnumLookup construct(ProtobufEnum enumDef)

    - #### findEnumByIndex

          public abstract String findEnumByIndex(int index)

    - #### findEnumIndex

          public abstract int findEnumIndex(com.fasterxml.jackson.core.SerializableString key)

    - #### findEnumIndex

          public abstract int findEnumIndex(String key)

    - #### getEnumValues

          public abstract Collection<String> getEnumValues()

Copyright © 2017 FasterXML. All rights reserved.