@Test public void natural_order_collection_value() { ExprValueOrdering ordering = ExprValueOrdering.natural(); assertEquals( 1, ordering.compare( collectionValue(ImmutableList.of(1, 2)), collectionValue(ImmutableList.of(3)))); assertEquals( 0, ordering.compare( collectionValue(ImmutableList.of(1, 2)), collectionValue(ImmutableList.of(3, 4)))); assertEquals( -1, ordering.compare( collectionValue(ImmutableList.of(3)), collectionValue(ImmutableList.of(1, 2)))); }
public static ExprValueOrdering natural() { return NaturalExprValueOrdering.INSTANCE; }
ExprValueOrdering implements Comparator<ExprValue> { public static ExprValueOrdering natural() { return NaturalExprValueOrdering.INSTANCE; } }
ExprValueOrdering implements Comparator<ExprValue> { public static ExprValueOrdering natural() { return NaturalExprValueOrdering.INSTANCE; }  }
ExprValueOrdering implements Comparator<ExprValue> { public static ExprValueOrdering natural() { return NaturalExprValueOrdering.INSTANCE; }  static ExprValueOrdering natural(); ExprValueOrdering reverse(); ExprValueOrdering nullsFirst(); ExprValueOrdering nullsLast(); }
ExprValueOrdering implements Comparator<ExprValue> { public static ExprValueOrdering natural() { return NaturalExprValueOrdering.INSTANCE; }  static ExprValueOrdering natural(); ExprValueOrdering reverse(); ExprValueOrdering nullsFirst(); ExprValueOrdering nullsLast();  }