Package dap4.servlet
Class RandomValue
- java.lang.Object
-
- dap4.servlet.Value
-
- dap4.servlet.RandomValue
-
public class RandomValue extends Value
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class dap4.servlet.Value
Value.ValueSource
-
-
Field Summary
Fields Modifier and Type Field Description protected Randomrandom-
Fields inherited from class dap4.servlet.Value
asciionly, HOSTNSEG, MAXOPAQUESIZE, MAXSEGSIZE, MAXSTRINGSIZE, PATHNSEG
-
-
Constructor Summary
Constructors Constructor Description RandomValue()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intnextCount(int max)Return an integer in range 1..max inclusive.ObjectnextFloat(dap4.core.dmr.DapType basetype)ObjectnextInteger(dap4.core.dmr.DapType basetype)ObjectnextValue(dap4.core.dmr.DapType basetype)Value.ValueSourcesource()
-
-
-
Field Detail
-
random
protected Random random
-
-
Method Detail
-
source
public Value.ValueSource source()
-
nextValue
public Object nextValue(dap4.core.dmr.DapType basetype) throws dap4.core.util.DapException
-
nextInteger
public Object nextInteger(dap4.core.dmr.DapType basetype) throws dap4.core.util.DapException
- Throws:
dap4.core.util.DapException
-
nextFloat
public Object nextFloat(dap4.core.dmr.DapType basetype) throws dap4.core.util.DapException
- Throws:
dap4.core.util.DapException
-
-