| java.lang.Object | |
| ↳ | androidx.test.espresso.remote.ProtoUtils |
Contains various utility methods to ease use of protos and increased readability in code.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Capitalizes the first char of a String.
| |||||||||||
Maps an enum proto message type to a internal representation enum type T.
| |||||||||||
Returns a filtered view of a class's declared
Field list. | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
| |||||||||||
Capitalizes the first char of a String.
Examples: "espresso" -> "Espresso", "Espresso" -> "Espresso"
| Parameters | |
|---|---|
aString |
String: the String to capitalize |
| Returns | |
|---|---|
String |
capitalized String or original String, if aString was empty |
Maps an enum proto message type to a internal representation enum type T.
| Parameters | |
|---|---|
protoEnumIndex |
int: the proto enum index of the value returned by the unwrapped proto message |
enumClass |
Class: the enum class to map against |
| Returns | |
|---|---|
T |
the enum constant for a proto enum index |