Comparator<Double>
public class DoubleComparator extends Object implements Comparator<Double>
Constructor | Description |
---|---|
DoubleComparator(double epsilon) |
Modifier and Type | Method | Description |
---|---|---|
int |
compare(Double x,
Double y) |
|
boolean |
equals(Object obj) |
|
double |
getEpsilon() |
|
int |
hashCode() |
comparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public int compare(Double x, Double y)
compare
in interface Comparator<Double>
public double getEpsilon()
Copyright © 2014–2019. All rights reserved.