|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sky.monome.sequence.factory.GenericSequenceIteratorFactory<S,B>
S
- Type of sequencers that use sequence iterators built by this factory.B
- Type of button managers used by the sequencers that use sequence iterators built by this factory.public class GenericSequenceIteratorFactory<S extends Sequencer<S,B>,B extends ButtonManager<B>>
Generic sequence iterator factory which can produce serially sequence iterators of the class specified at construction.
Constructor Summary | |
---|---|
GenericSequenceIteratorFactory(java.lang.Class<? extends SequenceIterator<S,B>> sequenceIteratorClass,
java.lang.Object... argumentsForSequenceIterator)
Constructs a generic sequence iterator factory which can produce sequence iterators of the specified class and with the specified arguments common to all produced sequence iterators. |
Method Summary | ||
---|---|---|
static
|
createGenericSequenceIteratorFactory(java.lang.Class<? extends SequenceIterator> sequenceIteratorClass,
java.lang.Object... argumentsForSequenceIterator)
Creates a generic sequence iterator factory of specified types, and with the specified (not paramtrized) sequence iterator class and specified arguments. |
|
SequenceIterator<S,B> |
createSequenceIterator(java.lang.Object... arguments)
Creates a sequence iterator with the help of optional arguments. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GenericSequenceIteratorFactory(java.lang.Class<? extends SequenceIterator<S,B>> sequenceIteratorClass, java.lang.Object... argumentsForSequenceIterator) throws MonomeException
sequenceIteratorClass
- Class object that denotes the type of sequence iterators that will be produced by this factory.sargumentsForSequenceIterator
- Optional arguments that can be used for the sequence iterators factoring.
These arguments must be specified in a good order so that a constructor is defined for the
specified sequence iterator class with specified arguments.
MonomeException
- When no constructor is found for the specified class and specified
arguments in the same order.Method Detail |
---|
public SequenceIterator<S,B> createSequenceIterator(java.lang.Object... arguments) throws MonomeException
createSequenceIterator
in interface SequenceIteratorFactory<S extends Sequencer<S,B>,B extends ButtonManager<B>>
arguments
- Optional arguments that can help the sequence iterator factoring.
Note that this kind of factory does not use these arguments.
MonomeException
- When the sequence iterator factoring can't operate successfully.public static <S extends Sequencer<S,B>,B extends ButtonManager<B>> GenericSequenceIteratorFactory<S,B> createGenericSequenceIteratorFactory(java.lang.Class<? extends SequenceIterator> sequenceIteratorClass, java.lang.Object... argumentsForSequenceIterator) throws MonomeException
S
- Type of sequencer that use sequence iterators built by this factory.B
- Type of button manager used by sequencers that use sequence iterators built by this factory.sequenceIteratorClass
- (Not parametrized) sequence iterator class that denotes future factored sequence iterators.argumentsForSequenceIterator
- Arguments used to create the factory.
MonomeException
- When the factory can't be created.GenericSequenceIteratorFactory(Class>,Object...)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |