public abstract class RealNumbers<NUMBER extends Number & Comparable<NUMBER>> extends Numbers<NUMBER>
Constructor and Description |
---|
RealNumbers() |
RealNumbers(ComparisonStrategy comparisonStrategy) |
Modifier and Type | Method and Description |
---|---|
void |
assertIsNaN(AssertionInfo info,
NUMBER actual)
Verifies that the actual value is equal to
NaN .It does not rely on the custom comparisonStrategy (if one is set). |
void |
assertIsNotNaN(AssertionInfo info,
NUMBER actual)
Verifies that the actual value is not equal to
NaN . |
protected boolean |
isGreaterThan(NUMBER value,
NUMBER other) |
protected abstract NUMBER |
NaN() |
absDiff, areEqual, assertIsBetween, assertIsCloseTo, assertIsCloseToPercentage, assertIsNegative, assertIsNotCloseTo, assertIsNotCloseToPercentage, assertIsNotNegative, assertIsNotPositive, assertIsNotZero, assertIsOne, assertIsPositive, assertIsStrictlyBetween, assertIsZero, isGreaterThanOrEqualTo, one, zero
areEqual, assertEqual, assertEqualByComparison, assertGreaterThan, assertGreaterThanOrEqualTo, assertIsBetween, assertLessThan, assertLessThanOrEqualTo, assertNotEqual, assertNotEqualByComparison, assertNotNull, checkBoundsValidity, equals, getComparator, hashCode, toString
public RealNumbers()
public RealNumbers(ComparisonStrategy comparisonStrategy)
public void assertIsNaN(AssertionInfo info, NUMBER actual)
NaN
.info
- contains information about the assertion.actual
- the actual value.AssertionError
- if the actual value is not equal to NaN
.protected abstract NUMBER NaN()
public void assertIsNotNaN(AssertionInfo info, NUMBER actual)
NaN
.info
- contains information about the assertion.actual
- the actual value.AssertionError
- if the actual value is equal to NaN
.protected boolean isGreaterThan(NUMBER value, NUMBER other)
isGreaterThan
in class Numbers<NUMBER extends Number & Comparable<NUMBER>>
Copyright © 2014–2019 AssertJ. All rights reserved.