Java 类android.support.test.espresso.core.deps.guava.collect.Ordering 实例源码

项目:Game-of-Thrones    文件:RecyclerSortedViewAssertion.java   
@Override
public void check(View view, NoMatchingViewException noViewFoundException) {
  StringDescription description = new StringDescription();
  RecyclerView recyclerView = (RecyclerView) view;
  sortedList = withAdapter.itemsToSort(recyclerView);

  checkIsNotEmpty(view, description);

  description.appendText("The list " + sortedList + " is not sorted");
  assertTrue(description.toString(), Ordering.natural().<T>isOrdered(sortedList));
}
项目:quotes    文件:RecyclerSortedViewAssertion.java   
@Override
public void check(View view, NoMatchingViewException noViewFoundException) {
    StringDescription description = new StringDescription();
    RecyclerView recyclerView = (RecyclerView) view;
    sortedList = withAdapter.itemsToSort(recyclerView);

    checkIsNotEmpty(view, description);

    description.appendText("The list "+ sortedList + " is not sorted");
    assertTrue(description.toString(), Ordering.natural().<T>isOrdered(sortedList));
}