public class SequenceModels
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SequenceModels.AbstractSequence<T> |
static class |
SequenceModels.DoubleSequence |
static class |
SequenceModels.ListSequence<T> |
static class |
SequenceModels.RangedSequence |
Constructor and Description |
---|
SequenceModels() |
Modifier and Type | Method and Description |
---|---|
static SequenceModel<java.lang.Double> |
doubleSequence(double initialValue,
double step)
Returns an unbounded sequence that iterates over double values with
the specified increment.
|
static SequenceModel<java.lang.Double> |
doubleSequence(double initialValue,
double step,
double resolution)
Returns an unbounded sequence that iterates over double values with
a specified increment.
|
static <T> SequenceModel<T> |
listSequence(java.util.List<T> list)
Returns an unbounded sequence that iterates over a list
and wraps in both directions.
|
static <T> SequenceModel<T> |
listSequence(java.util.List<T> list,
T initialItem)
Returns an unbounded sequence that iterates over a list
and wraps in both directions.
|
static SequenceModel<java.lang.Double> |
rangedSequence(com.simsilica.lemur.RangedValueModel model,
double step,
double resolution)
Returns a bounded double sequence using the specified range model, step, and resolution.
|
public static SequenceModel<java.lang.Double> doubleSequence(double initialValue, double step)
public static SequenceModel<java.lang.Double> doubleSequence(double initialValue, double step, double resolution)
public static SequenceModel<java.lang.Double> rangedSequence(com.simsilica.lemur.RangedValueModel model, double step, double resolution)
public static <T> SequenceModel<T> listSequence(java.util.List<T> list)
public static <T> SequenceModel<T> listSequence(java.util.List<T> list, T initialItem)