FieldDescriptor

public final class FieldDescriptor
extends Object

java.lang.Object
   ↳ android.support.test.espresso.remote.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

Fields

public final String fieldName

public final Class<?> fieldType

public final int order

Public methods

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

Creates a FieldDescriptor instance.

Inherited methods

From class java.lang.Object

Fields

fieldName

String fieldName

fieldType

Class<?> fieldType

order

int order

Public methods

equals

boolean equals (Object o)

Parameters
o Object

Returns
boolean

hashCode

int hashCode ()

Returns
int

of

FieldDescriptor of (Class<?> fieldType, 
                String fieldName, 
                int order)

Creates a FieldDescriptor instance.

Parameters
fieldType Class: the type of the field

fieldName String: the name of the field as declared in the class

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

Returns
FieldDescriptor