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 methods

boolean
int
static FieldDescriptor
of(@NonNull Class<Object> fieldType, @NonNull 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 methods

equals

public boolean equals(Object o)

hashCode

public int hashCode()

of

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

Creates a FieldDescriptor instance.

Parameters
@NonNull Class<Object> fieldType

the type of the field

@NonNull 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