Stay organized with collections Save and categorize content based on your preferences.

FieldDescriptor

public final class FieldDescriptor


Provides additional meta data about a Field declared in a class.

The data provided here is used at runtime to reflectively access fields that require proto serialization.

Summary

Public fields

final String
final Class<Object>
final int

Public constructors

Public methods

boolean
int
static FieldDescriptor
of(Class<Object> fieldType, String fieldName, int order)

Creates a FieldDescriptor instance.

Public fields

fieldName

public final String fieldName

fieldType

public final Class<ObjectfieldType

order

public final int order

Public constructors

FieldDescriptor

public FieldDescriptor()

Public methods

equals

public boolean equals(Object o)

hashCode

public int hashCode()

of

public static FieldDescriptor of(Class<Object> fieldType, String fieldName, int order)

Creates a FieldDescriptor instance.

Parameters
Class<Object> fieldType

the type of the field

String fieldName

the name of the field as declared in the class

int order

the declared order of the field, order values need to start with 0