Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| OptaPlanner distribution 6.1.0.CR1
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

Field Summary
`protected Long` | `randomSeed`
`protected RandomType` | `randomType`

Constructor Summary
`DefaultRandomFactory(RandomType randomType, Long randomSeed)`

Method Summary
`Random` | `createRandom()`
`String` | `toString()`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Field Detail

### randomType

    protected final RandomType randomType

### randomSeed

    protected final Long randomSeed

Constructor Detail

### DefaultRandomFactory

    public DefaultRandomFactory(RandomType randomType,
                                Long randomSeed)

Parameters:
  `randomType` - never null
  `randomSeed` - null if no seed

Method Detail

### createRandom

    public Random createRandom()

  Specified by:
    `createRandom` in interface `RandomFactory`
  Returns:
    never null

### toString

    public String toString()

  Overrides:
    `toString` in class `Object`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| OptaPlanner distribution 6.1.0.CR1
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.