APIdia Launch Partner
Top Description Inners Fields Constructors Methods
io.github.spannm.jackcess.impl.expr

public Class RandomContext

extends Object
Class Inheritance
Imports
java.util.HashMap, .Map, .Random

This class effectively encapsulates the stateful logic of the "Rnd" function.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class
private class
private class
private abstract class

Field Summary

Modifier and TypeField and Description
private RandomContext.Source
private float
private Map<Integer, RandomContext.Source>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static Random
createRandom(long seed)

public float
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

defRndback to summary
private RandomContext.Source defRnd
lastValback to summary
private float lastVal
rndsback to summary
private Map<Integer, RandomContext.Source> rnds

Constructor Detail

RandomContextback to summary
public RandomContext()

Method Detail

createRandomback to summary
private static Random createRandom(long seed)
getRandomback to summary
public float getRandom(Integer _seed)
io.github.spannm.jackcess.impl.expr back to summary

private final Class RandomContext.LastValSource

extends Source
Class Inheritance

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
protected float
Inherited from io.github.spannm.jackcess.impl.expr.RandomContext.Source:
get

Constructor Detail

LastValSourceback to summary
private LastValSource()

Method Detail

getImplback to summary
protected float getImpl()

Implements abstract io.github.spannm.jackcess.impl.expr.RandomContext.Source.getImpl.

Annotations
@Override
io.github.spannm.jackcess.impl.expr back to summary

private final Class RandomContext.ResetSource

extends Source
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final float

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
protected float
private void
Inherited from io.github.spannm.jackcess.impl.expr.RandomContext.Source:
get

Field Detail

mvalback to summary
private final float mval

Constructor Detail

ResetSourceback to summary
private ResetSource(Random _rnd)

Method Detail

getImplback to summary
protected float getImpl()

Implements abstract io.github.spannm.jackcess.impl.expr.RandomContext.Source.getImpl.

Annotations
@Override
resetback to summary
private void reset()
io.github.spannm.jackcess.impl.expr back to summary

private final Class RandomContext.SimpleSource

extends Source
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final Random

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
protected float
Inherited from io.github.spannm.jackcess.impl.expr.RandomContext.Source:
get

Field Detail

mrndback to summary
private final Random mrnd

Constructor Detail

SimpleSourceback to summary
private SimpleSource(Random _rnd)

Method Detail

getImplback to summary
protected float getImpl()

Implements abstract io.github.spannm.jackcess.impl.expr.RandomContext.Source.getImpl.

Annotations
@Override
io.github.spannm.jackcess.impl.expr back to summary

private abstract Class RandomContext.Source

extends Object
Class Inheritance
Known Direct Subclasses
io.github.spannm.jackcess.impl.expr.RandomContext.SimpleSource, io.github.spannm.jackcess.impl.expr.RandomContext.ResetSource, io.github.spannm.jackcess.impl.expr.RandomContext.LastValSource

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public float
get()

protected abstract float
private float
withLast(float _lastVal)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Sourceback to summary
private Source()

Method Detail

getback to summary
public float get()
getImplback to summary
protected abstract float getImpl()
withLastback to summary
private float withLast(float _lastVal)