if (ascending) {
return Ordering.from(new Comparator<Double>() {
public int compare(@Nullable Double left, @Nullable Double right) {
- if (left == right) {
- return 0;
- }
if (left == null) {
return 1;
}
}
return Ordering.from(new Comparator<Double>() {
public int compare(@Nullable Double left, @Nullable Double right) {
- if (left == right) {
- return 0;
- }
if (left == null) {
return 1;
}
if (ascending) {
return Ordering.from(new Comparator<Date>() {
public int compare(@Nullable Date left, @Nullable Date right) {
- if (left == right) {
- return 0;
- }
if (left == null) {
return 1;
}
}
return Ordering.from(new Comparator<Date>() {
public int compare(@Nullable Date left, @Nullable Date right) {
- if (left == right) {
- return 0;
- }
if (left == null) {
return 1;
}