rafa.math.gen
Class NumberGeneratorFragment
java.lang.Object
rafa.math.gen.NumberGeneratorFragment
public class NumberGeneratorFragment
- extends java.lang.Object
Fragment of values taken from a NumberGenerator
.
- Author:
- rafa
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NumberGeneratorFragment
public NumberGeneratorFragment(NumberGenerator generator,
int offset,
int length)
- Constructor.
- Parameters:
generator
- The generator providing values.offset
- The start index in the provider generator (first value
taken from it).length
- The number of values in the fragment.
getGenerator
public NumberGenerator getGenerator()
- Returns:
getLength
public int getLength()
- Returns:
getOffset
public int getOffset()
- Returns:
setGenerator
public void setGenerator(NumberGenerator generator)
- Parameters:
generator
-
setLength
public void setLength(int length)
- Parameters:
length
-
setOffset
public void setOffset(int offset)
- Parameters:
offset
-
Copyright © 2008-2009. All Rights Reserved.