public class ConcatSeq<T> extends Object implements SequenceWithClose<T>
Modifier and Type | Field and Description |
---|---|
int |
active
The number of Sequences that have been added so far.
|
int |
delta
Zero means - no growing.
|
Sequence<T>[] |
enums
The Sequences that will be concatenated.
|
int |
max_size
The maximum size of this object.
|
int |
size
The size of this object.
|
Constructor and Description |
---|
ConcatSeq(int initInputs)
Constructor for the ConcatSeq object.
|
ConcatSeq(int initInputs,
int delta)
Constructor for the ConcatEnums object
|
Modifier and Type | Method and Description |
---|---|
void |
add(Sequence<T> e)
Add the given Sequence to this object if the capacity has not been
reached..
|
void |
close()
Invalidates this sequence, releases all resources etc.
|
void |
kickOff(Sequence<T> e)
The input Sequence
e is exhausted, and it is just
after this concatenator has removed/unlinked it from inner
structures. |
T |
next()
Return the next Sequence in this collection.
|
public int max_size
public int size
public int active
public int delta
public ConcatSeq(int initInputs)
initInputs
- Description of the Parameterpublic ConcatSeq(int initInputs, int delta)
initInputs
- Description of the Parameterdelta
- Description of the Parameterpublic void add(Sequence<T> e)
e
- the Sequence to addpublic void kickOff(Sequence<T> e)
e
is exhausted, and it is just
after this concatenator has removed/unlinked it from inner
structures. Now it is requested to die, so it would kick off
somehow. For instance, if it is a stream, it would be closed when
it does not do it automatically. You can also peek at active
variable that stores the slot that is being cleaned out. By
default, it closes the sequence iff it is a SequenceWithClose.e
- the Sequencepublic T next()
public void close()
SequenceWithClose
close
in interface AutoCloseable
close
in interface SequenceWithClose<T>
Copyright © 2016 Egothor. All Rights Reserved.