public class Infinite extends Object implements Comparable
Modifier and Type | Field and Description |
---|---|
private boolean |
negative |
Constructor and Description |
---|
Infinite(boolean negative)
Create an Infinite object with positive or negative sign.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object rhs)
An infinity value is always less than or greater than.
|
String |
toString()
Override the toString method in order to be re-parseable.
|
Copyright © 2018. All rights reserved.