public class CombinedIntGenerator extends java.lang.Object implements IntGenerator
| Modifier and Type | Field and Description |
|---|---|
private java.util.Collection<IntGenerator> |
generators
Generators.
|
private int |
max
Maximum value.
|
private int |
min
Minimum.
|
| Constructor and Description |
|---|
CombinedIntGenerator(java.util.Collection<IntGenerator> generators)
Constructor.
|
CombinedIntGenerator(IntGenerator... generators)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
forEach(java.util.function.IntConsumer c)
Process the entire series once.
|
int |
getMax()
Maximum value of the stream.
|
int |
getMin()
Minimum value of the stream.
|
java.lang.StringBuilder |
serializeTo(java.lang.StringBuilder buf)
Produce a textual representation.
|
java.lang.String |
toString() |
private void |
updateMinMax()
Compute the minimum and maximum.
|
private int min
private int max
private java.util.Collection<IntGenerator> generators
public CombinedIntGenerator(IntGenerator... generators)
generators - Data generators.public CombinedIntGenerator(java.util.Collection<IntGenerator> generators)
generators - Data generators. Will not be copied. Modifying
this afterwards can cause incorrect results, use with care.public int getMin()
IntGeneratorgetMin in interface IntGeneratorpublic int getMax()
IntGeneratorgetMax in interface IntGeneratorprivate void updateMinMax()
public void forEach(java.util.function.IntConsumer c)
IntGeneratorforEach in interface IntGeneratorc - Consumerpublic java.lang.StringBuilder serializeTo(java.lang.StringBuilder buf)
IntGeneratorserializeTo in interface IntGeneratorbuf - Output buffer.public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2019 ELKI Development Team. License information.