org.znerd.math
public class CanNotCompareException extends java.lang.RuntimeException
compareTo(RealNumber)
method in
interface RealNumber
.RealNumber.compareTo(RealNumber)
,
Serialized FormConstructor and Description |
---|
CanNotCompareException(RealNumber a,
RealNumber b)
Constructs a new
CanNotCompareException for a failed
comparison between the specified numbers. |
Modifier and Type | Method and Description |
---|---|
RealNumber[] |
getNumbers()
Returns the numbers that could not be compared in a new array.
|
public CanNotCompareException(RealNumber a, RealNumber b) throws java.lang.IllegalArgumentException
CanNotCompareException
for a failed
comparison between the specified numbers.a
- the first number, not null
.b
- the second number, not null
.java.lang.IllegalArgumentException
- if a == null || b == null
.public RealNumber[] getNumbers()
null
.