public class patInt extends Object
Constructor and Description |
---|
patInt()
Initialize to zero.
|
patInt(int init)
Initialize to the value of init.
|
patInt(patInt p)
Initialize to the value of p.
|
Modifier and Type | Method and Description |
---|---|
void |
dec()
Decrement the value of this by 1.
|
boolean |
equals(patInt j)
Test to see if two patterns are equal.
|
boolean |
finite()
Tests to see if this represents an infinite quantity.
|
void |
inc()
Increment the value of this by 1.
|
int |
intValue()
Converts to a patInt to an int.
|
boolean |
lessEq(patInt j)
Test to see if this is less than or equal to j.
|
patInt |
maxeq(patInt p)
If the argument p has a greater than this,
then set this object equal to p.
|
patInt |
mineq(patInt p)
If the argument p has a smaller value than this,
then set this Object equal to p.
|
patInt |
mul(patInt p)
Returns a patInt with value equal to the product
of the value of p and this.
|
patInt |
pluseq(patInt p)
This would be operator+=(patInt) if I were programming
in C++.
|
void |
setInf(boolean b)
set this int to infinity.
|
String |
toString()
Formats the pattern as a String.
|
public patInt()
public patInt(int init)
public patInt(patInt p)
public void setInf(boolean b)
public final void inc()
public final void dec()
public final boolean lessEq(patInt j)
public final boolean equals(patInt j)
public final String toString()
public final patInt pluseq(patInt p)
public final patInt mul(patInt p)
public final patInt mineq(patInt p)
public final patInt maxeq(patInt p)
public boolean finite()
public int intValue()