public class ArithmeticProgression extends Object implements Comparable<ArithmeticProgression>
| Modifier and Type | Field and Description |
|---|---|
long |
delta
Difference between terms
|
long |
limit
Ending value
|
char |
symbol
A symbol
|
long |
value
Starting value
|
| Constructor and Description |
|---|
ArithmeticProgression(char symbol,
long value,
long delta,
long limit)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ArithmeticProgression that) |
boolean |
equals(Object obj) |
long |
getSteps()
Get the number of steps
|
int |
hashCode()
Not supported
|
String |
toString() |
public final char symbol
public final long value
public final long delta
public final long limit
public ArithmeticProgression(char symbol,
long value,
long delta,
long limit)
public int compareTo(ArithmeticProgression that)
compareTo in interface Comparable<ArithmeticProgression>public long getSteps()
Copyright © 2008–2020 Apache Software Foundation. All rights reserved.