public final class

FieldDescriptor

extends Object
java.lang.Object
   ↳ androidx.test.espresso.remote.FieldDescriptor

Class Overview

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.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public final String fieldName

public final Class<?> fieldType

public final int order

Public Methods

public boolean equals (Object o)

Parameters
o Object
Returns
boolean

public int hashCode ()

Returns
int

public static 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