public class StepAndPage extends Object implements Comparable<StepAndPage>
| Constructor and Description |
|---|
StepAndPage()
Default constructor returns an unset instance
|
StepAndPage(int step,
int page)
Initialize a new StepAndPage from given step and page numbers
|
StepAndPage(String asString)
Initialize a new StepAndPage by parsing a string of the form "step.page".
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(StepAndPage o) |
boolean |
equals(Object other)
Compare this StepAndPage with another
|
int |
getPage() |
int |
getStep() |
int |
hashCode() |
boolean |
isSet()
Does this instance have a value?
|
String |
toString() |
public StepAndPage()
public StepAndPage(int step,
int page)
step - step number.page - page number.public StepAndPage(String asString)
asString - decimal step and page numbers separated by a period.public int getStep()
public int getPage()
public boolean isSet()
public boolean equals(Object other)
public int compareTo(StepAndPage o)
compareTo in interface Comparable<StepAndPage>Copyright © 2016 DuraSpace. All rights reserved.