# PSF-LoginServer - master - net.psforever.objects.guid.source
PSF - LoginServer - master - net.psforever.objects.guid.source
Keywords: PSF LoginServer master net.psforever.objects.guid.source

PSF-LoginServer - master < Back


# Packages

-  package root
  Definition Classes
    root
-  package net
  Definition Classes
    root
-  package psforever
  Definition Classes
    net
-  package objects
  Definition Classes
    psforever
-  package guid
  Definition Classes
    objects
-  package actor
  Definition Classes
    guid
-  package key
  Definition Classes
    guid
-  package pool
  Definition Classes
    guid
-  package selector
  Definition Classes
    guid
-  package source
  Definition Classes
    guid
- MaxNumberSource
- NumberSource
- SpecificNumberSource

p

net.psforever.objects.guid

# source

#### package source


Ordering

1. Alphabetic

Visibility

1. Public
2. Protected

### Type Members

1.  class MaxNumberSource extends NumberSource

   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. Produce a series of numbers from 0 to a maximum number (inclusive) to be used as globally unique identifiers (GUID's).

   Exceptions thrown

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

2.  trait NumberSource extends AnyRef

   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).

3.  class SpecificNumberSource extends NumberSource

   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. Produce a series of numbers from 0 to a maximum number (inclusive) to be used as globally unique identifiers (GUID's).

   Exceptions thrown

     `IllegalArgumentException` if any of the numbers provided are negative

### Value Members

1.  object MaxNumberSource
2.  object SpecificNumberSource

### Ungrouped