public static final class Equivalence.Builder extends Object
Equivalence
instances.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Equivalence |
build() |
Equivalence.Builder |
withEpsilon(double epsilon)
The maximum absolute difference between two Ion float values for
which the two values will be considered equivalent.
|
Equivalence.Builder |
withStrict(boolean isStrict)
When true, checks for strict data equivalence over two Ion Values.
|
public Equivalence.Builder withStrict(boolean isStrict)
Equivalence
for discussion of the differences
between the two.
Default: true.isStrict
- the value.public Equivalence.Builder withEpsilon(double epsilon)
Double.compare(a, b) == 0
.epsilon
- the value.public Equivalence build()