|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.examples.pi.math.ArithmeticProgression
public class ArithmeticProgression
An arithmetic progression
| Field Summary | |
|---|---|
long |
delta
Difference between terms |
long |
limit
Ending value |
char |
symbol
A symbol |
long |
value
Starting value |
| Constructor Summary | |
|---|---|
ArithmeticProgression(char symbol,
long value,
long delta,
long limit)
Constructor |
|
| Method Summary | |
|---|---|
int |
compareTo(ArithmeticProgression that)
|
boolean |
equals(Object obj)
|
long |
getSteps()
Get the number of steps |
int |
hashCode()
Not supported |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final char symbol
public final long value
public final long delta
public final long limit
| Constructor Detail |
|---|
public ArithmeticProgression(char symbol,
long value,
long delta,
long limit)
| Method Detail |
|---|
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic int compareTo(ArithmeticProgression that)
compareTo in interface Comparable<ArithmeticProgression>public long getSteps()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||