Summary: Methods | Inherited Methods | [Expand All]

# HumanReadables

`public final class HumanReadables`
`extends Object` ``

java.lang.Object
↳ | android.support.test.espresso.util.HumanReadables

Text converters for various Android objects.

## Summary

### Public methods
`static String` | `describe(Cursor c)`
`static String` | `describe(View v)` Transforms an arbitrary view into a string with (hopefully) enough debug info.
`static String` | `getViewHierarchyErrorMessage(View rootView, List<View> problemViews, String errorHeader, String problemViewSuffix)` Prints out an error message feature the view hierarchy starting at the rootView.

### Inherited methods
From class `java.lang.Object`
`Object` | `clone()`
`boolean` | `equals(Object arg0)`
`void` | `finalize()`
`final Class<?>` | `getClass()`
`int` | `hashCode()`
`final void` | `notify()`
`final void` | `notifyAll()`
`String` | `toString()`
`final void` | `wait(long arg0, int arg1)`
`final void` | `wait(long arg0)`
`final void` | `wait()`

## Public methods

### describe

    String describe (Cursor c)

Parameters
`c` | `Cursor`

Returns
`String` |

### describe

    String describe (View v)

Transforms an arbitrary view into a string with (hopefully) enough debug info.

Parameters
`v` | `View`: nullable view

Returns
`String` | a string for human consumption.

### getViewHierarchyErrorMessage

    String getViewHierarchyErrorMessage (View rootView,
                    List<View> problemViews,
                    String errorHeader,
                    String problemViewSuffix)

Prints out an error message feature the view hierarchy starting at the rootView.

Parameters
`rootView` | `View`: the root of the hierarchy tree to print out.
`problemViews` | `List`: list of the views that you would like to point out are causing the error message or null, if you want to skip this feature.
`errorHeader` | `String`: the header of the error message (should contain the description of why the error is happening).
`problemViewSuffix` | `String`: the message to append to the view description in the tree printout. Required if problemViews is supplied. Otherwise, null is acceptable.

Returns
`String` | a string for human consumption.

- ## Classes

  - ActivityLifecycles
  - HumanReadables
  - TreeIterables
  - TreeIterables.ViewAndDistance