org.apache.lucene.util
Class SmartRandom

java.lang.Object
  extended by java.util.Random
      extended by org.apache.lucene.util.SmartRandom
All Implemented Interfaces:
Serializable

public class SmartRandom
extends Random

A random that tracks if its been initialized properly, and throws an exception if it hasn't.

See Also:
Serialized Form

Method Summary
protected  int next(int bits)
           
 
Methods inherited from class java.util.Random
nextBoolean, nextBytes, nextDouble, nextFloat, nextGaussian, nextInt, nextInt, nextLong, setSeed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

next

protected int next(int bits)
Overrides:
next in class Random


Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.