Overview | Package | Class | Tree | Deprecated | Index | Help
| Compoze Software, Inc.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## portlets.compoze.groupware.util
Class LinearCongruentialSequence

    java.lang.Object
      portlets.compoze.groupware.util.LinearCongruentialSequence

All Implemented Interfaces:
  java.io.Serializable

public class LinearCongruentialSequence
extends java.lang.Object
implements java.io.Serializable

This class generates congruential (non-repeating) sequence of long numbers.

See Also:
  Serialized Form

Constructor Summary
`LinearCongruentialSequence()` Constructor.

Method Summary
`long` | `getNext()` Get the next value in the sequence.
`long` | `getNext(long lLastValue)` Get the next value in the sequence for the specified last value.
`void` | `setSeed(long lSeed)` Set the seed.

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

Constructor Detail

### LinearCongruentialSequence

    public LinearCongruentialSequence()

  Constructor.

Method Detail

### setSeed

    public void setSeed(long lSeed)

  Set the seed.

  Parameters:
    `lSeed` - the seed to set

### getNext

    public long getNext()

  Get the next value in the sequence.

  Returns:
    the next long

### getNext

    public long getNext(long lLastValue)

  Get the next value in the sequence for the specified last value.

  Returns:
    the next long

Overview | Package | Class | Tree | Deprecated | Index | Help
| Compoze Software, Inc.
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright ©1999-2003 Compoze Software, Inc. All rights reserved.