Package

net.psforever.objects.guid

source

Permalink

package source

Visibility
  1. Public
  2. All

Type Members

  1. class LimitedNumberSource extends NumberSource

    Permalink

    A NumberSource is considered a master "pool" of numbers from which all numbers are available to be drawn.

    A NumberSource is considered a master "pool" of numbers from which all numbers are available to be drawn. The numbers are considered to be exclusive.

    Produce a series of numbers from 0 to a maximum number (inclusive) to be used as globally unique identifiers (GUIDs).

    Exceptions thrown

    IllegalArgumentException if max is less than zero (therefore the count of generated numbers is at most zero)

    java.lang.NegativeArraySizeException if the count of numbers generated due to max is negative

  2. trait NumberSource extends AnyRef

    Permalink

    A NumberSource is considered a master "pool" of numbers from which all numbers are available to be drawn.

    A NumberSource is considered a master "pool" of numbers from which all numbers are available to be drawn. The numbers are considered to be exclusive.

    The following are guidelines for implementing classes. The numbers allocated to this source are from zero up through positive integers. When a number is drawn from the pool, it is flagged internally and can not be selected for drawing again until the flag is removed. Some flagging states are allowed to restrict that number for the whole lifespan of the source. This internal flagging is maintained by a "monitor" that should not directly get exposed. Use the provided indirect referencing containers - SecureKey and LoanedKey.

    The purpose of a NumberSource is to help facilitate globally unique identifiers (GUID, pl. GUIDs).

Value Members

  1. object LimitedNumberSource

    Permalink

Ungrouped