public class SequenceInteger extends AnchorBean<SequenceInteger>
The sequence will step from start
to end
with step-sizes of increment
.
There is no guarantee that end
will be included, if it doesn't align with the
step-size.
Constructor and Description |
---|
SequenceInteger() |
Modifier and Type | Method and Description |
---|---|
void |
checkMisconfigured(BeanInstanceMap defaultInstances)
Checks that a bean's properties conform to expectations.
|
int |
getEnd()
An index beyond which we cannot iterate (inclusive).
|
int |
getIncrement()
Size of step to use when incrementing.
|
int |
getStart()
The index to begin iteration from.
|
Iterator<Integer> |
iterator()
An iterator for each element in the sequence.
|
void |
setEnd(int end)
An index beyond which we cannot iterate (inclusive).
|
void |
setIncrement(int increment)
Size of step to use when incrementing.
|
void |
setStart(int start)
The index to begin iteration from.
|
describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public void checkMisconfigured(BeanInstanceMap defaultInstances) throws BeanMisconfiguredException
AnchorBean
checkMisconfigured
in class AnchorBean<SequenceInteger>
defaultInstances
- all available default instances if the DefaultInstance
annotation is usedBeanMisconfiguredException
- if the bean has not been configured properly as XMLpublic Iterator<Integer> iterator()
public int getStart()
public void setStart(int start)
public int getEnd()
public void setEnd(int end)
public int getIncrement()
public void setIncrement(int increment)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.