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
|
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 © 2013 Apache Software Foundation. All rights reserved.