org.optaplanner.core.impl.solver.random
Class DefaultRandomFactory
java.lang.Object
org.optaplanner.core.impl.solver.random.DefaultRandomFactory
- All Implemented Interfaces:
- RandomFactory
public class DefaultRandomFactory
- extends Object
- implements RandomFactory
randomType
protected final RandomType randomType
randomSeed
protected final Long randomSeed
DefaultRandomFactory
public DefaultRandomFactory(RandomType randomType,
Long randomSeed)
- Parameters:
randomType
- never nullrandomSeed
- null if no seed
createRandom
public Random createRandom()
- Specified by:
createRandom
in interface RandomFactory
- Returns:
- never null
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.