It catalogs the numbers and ensures the pool contents are unique to each other.<br>
<br>
All globally unique numbers are sorted into user-defined groups called pools.
Pools are intended to pre-allocate certain numbers to certain tasks.
Two default pools also exist - "generic," for all numbers not formally placed into a pool, and a hidden restricted pool.
The former can accept a variety of numbers on the source not known at initialization time loaded into it.
The latter can only be set by the <code>NumberSource</code> and can not be affected once this object is created.</p></div><dlclass="attributes block"><dt>Source</dt><dd><ahref="https://github.com/psforever/PSF-LoginServer/blob/master//home/runner/work/PSF-LoginServer/PSF-LoginServer/src/main/scala/net/psforever/objects/guid/NumberPoolHub.scala"target="_blank">NumberPoolHub.scala</a></dd></dl><divclass="toggleContainer"><divclass="toggle block"><span>Linear Supertypes</span><divclass="superTypes hiddenContent"><spanname="scala.AnyRef"class="extype">AnyRef</span>, <spanname="scala.Any"class="extype">Any</span></div></div></div></div><divid="mbrsel"><divclass="toggle"></div><divid="memberfilter"><iclass="material-icons arrow"></i><spanclass="input"><inputplaceholder="Filter all members"id="mbrsel-input"type="text"accesskey="/"/></span><iclass="clear material-icons"></i></div><divid="filterby"><divid="order"><spanclass="filtertype">Ordering</span><ol><liclass="alpha in"><span>Alphabetic</span></li><liclass="inherit out"><span>By Inheritance</span></li></ol></div><divclass="ancestors"><spanclass="filtertype">Inherited<br/></span><olid="linearization"><liclass="in"name="net.psforever.objects.guid.NumberPoolHub"><span>NumberPoolHub</span></li><liclass="in"name="scala.AnyRef"><span>AnyRef</span></li><liclass="in"name="scala.Any"><span>Any</span></li></ol></div><divclass="ancestors"><spanclass="filtertype"></span><ol><liclass="hideall out"><span>Hide All</span></li><liclass="showall in"><span>Show All</span></li></ol></div><divid="visbl"><spanclass="filtertype">Visibility</span><ol><liclass="public in"><span>Public</span></li><liclass="protected out"><span>Protected</span></li></ol></div></div></div><divid="template"><divid="allMembers"><divid="constructors"class="members"><h3>Instance Constructors</h3><ol><liclass="indented0 "name="net.psforever.objects.guid.NumberPoolHub#<init>"group="Ungrouped"fullComment="yes"data-isabs="false"visbl="pub"><aid="<init>(source:net.psforever.objects.guid.source.NumberSource):net.psforever.objects.guid.NumberPoolHub"></a><aid="<init>:NumberPoolHub"></a><spanclass="permalink"><ahref="../../../../net/psforever/objects/guid/NumberPoolHub.html#<init>(source:net.psforever.objects.guid.source.NumberSource):net.psforever.objects.guid.NumberPoolHub"title="Permalink"><iclass="material-icons"></i></a></span><spanclass="modifier_kind"><spanclass="modifier"></span><spanclass="kind">new</span></span><spanclass="symbol"><spanclass="name">NumberPoolHub</span><spanclass="params">(<spanname="source">source: <ahref="source/NumberSource.html"name="net.psforever.objects.guid.source.NumberSource"id="net.psforever.objects.guid.source.NumberSource"class="extype">NumberSource</a></span>)</span></span><pclass="shortcomment cmt"></p><divclass="fullcomment"><divclass="comment cmt"></div><dlclass="paramcmts block"><dtclass="param">source</dt><ddclass="cmt"><p>the number source object</p></dd></dl></div></li></ol></div><divclass="values members"><h3>Value Members</h3><ol><liclass="indented0 "name="scala.AnyRef#!="group="Ungrouped"fullComment="yes"data-isabs="false"visbl="pub"><aid="!=(x$1:Any):Boolean"></a><aid="!=(Any):Boolean"></a><spanclass="permalink"><ahref="../../../../net/psforever/objects/guid/NumberPoolHub.html#!=(x$1:Any):Boolean"title="Permalink"><iclass="material-icons"></i></a></span><spanclass="modifier_kind"><spanclass="modifier">final </span><spanclass="kind">def</span></span><spanclass="symbol"><spanclass="name"title="gt4s: $bang$eq">!=</span><spanclass="params">(<spanname="arg0">arg0: <spanname="scala.Any"class="extype">Any</span></span>)</span><spanclass="result">: <spanname="scala.Boolean"class="extype">Boolean</span></span></span><divclass="fullcomment"><dlclass="attributes block"><dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div></li><liclass="indented0 "name="scala.AnyRef###"group="Ungrouped"fullComment="yes"data-isabs="false"visbl="pub"><a
<br>
Creating number pools is a task that should only be performed at whatever counts as the initialization stage.</p><divclass="fullcomment"><divclass="comment cmt"><p>Create a new number pool with the given label and the given numbers.<br>
<br>
Creating number pools is a task that should only be performed at whatever counts as the initialization stage.
Nothing technically blocks it being done during runtime;
however, stability is best served by doing it only once and while nothing else risk affecting the numbers.
Unlike "live" functionality which often returns as <code>Success</code> or <code>Failure</code>, this is considered a critical operation.
As thus, <code>Exceptions</code> are permitted since a fault of the pool's creation will disrupt normal operations.</p></div><dlclass="paramcmts block"><dtclass="param">name</dt><ddclass="cmt"><p>the name of the pool</p></dd><dtclass="param">pool</dt><ddclass="cmt"><p>the <code>List</code> of numbers that will belong to the pool</p></dd><dt>returns</dt><ddclass="cmt"><p>the newly-created number pool</p></dd></dl><dlclass="attributes block"><dt>Exceptions thrown</dt><dd><spanclass="cmt"><p><spanname="IllegalArgumentException"class="extype"><code>IllegalArgumentException</code></span> if the pool's name is already defined;
if the pool is (already) empty;
if the pool contains numbers the source does not;
if the pool contains numbers from already existing pools</p></span></dd></dl></div></li><liclass="indented0 "name="net.psforever.objects.guid.NumberPoolHub#GetPool"group="Ungrouped"fullComment="yes"data-isabs="false"visbl="pub"><aid="GetPool(name:String):Option[net.psforever.objects.guid.pool.NumberPool]"></a><aid="GetPool(String):Option[NumberPool]"></a><spanclass="permalink"><ahref="../../../../net/psforever/objects/guid/NumberPoolHub.html#GetPool(name:String):Option[net.psforever.objects.guid.pool.NumberPool]"title="Permalink"><iclass="material-icons"></i></a></span><spanclass="modifier_kind"><spanclass="modifier"></span><spanclass="kind">def</span></span><spanclass="symbol"><spanclass="name">GetPool</span><spanclass="params">(<spanname="name">name: <spanname="scala.Predef.String"class="extype">String</span></span>)</span><spanclass="result">: <spanname="scala.Option"class="extype">Option</span>[<ahref="pool/NumberPool.html"name="net.psforever.objects.guid.pool.NumberPool"id="net.psforever.objects.guid.pool.NumberPool"class="extype">NumberPool</a>]</span></span><pclass="shortcomment cmt">Get the number pool known by this name.</p><divclass="fullcomment"><divclass="comment cmt"><p>Get the number pool known by this name.
It will not return correctly for any number that is in the "restricted" pool.</p></div><dlclass="paramcmts block"><dtclass="param">name</dt><ddclass="cmt"><p>the name of the pool</p></dd><dt>returns</dt><ddclass="cmt"><p>a reference to the number pool, or <code>None</code></p></dd></dl></div></li><liclass="indented0 "name="net.psforever.objects.guid.NumberPoolHub#Numbers"group="Ungrouped"fullComment="no"data-isabs="false"visbl="pub"><aid="Numbers:List[Int]"></a><spanclass="permalink"><ahref="../../../../net/psforever/objects/guid/NumberPoolHub.html#Numbers:List[Int]"title="Permalink"><iclass="material-icons"></i></a></span><spanclass="modifier_kind"><spanclass="modifier"></span><spanclass="kind">def</span></span><spanclass="symbol"><spanclass="name">Numbers</span><spanclass="result">: <spanname="scala.List"class="extype">List</span>[<spanname="scala.Int"class="extype">Int</span>]</span></span></li><liclass="indented0 "name="net.psforever.objects.guid.NumberPoolHub#Pools"group="Ungrouped"fullComment="yes"data-isabs="false"visbl="pub"><aid="Pools:scala.collection.mutable.HashMap[String,net.psforever.objects.guid.pool.NumberPool]"></a><aid="Pools:HashMap[String,NumberPool]"></a><spanclass="permalink"><ahref="../../../../net/psforever/objects/guid/NumberPoolHub.html#Pools:scala.collection.mutable.HashMap[String,net.psforever.objects.guid.pool.NumberPool]"title="Permalink"><iclass="material-icons"></i></a></span><spanclass="modifier_kind"><spanclass="modifier"></span><spanclass="kind">def</span></span><spanclass="symbol"><spanclass="name">Pools</span><spanclass="result">: <spanname="scala.collection.mutable.HashMap"class="extype">HashMap</span>[<spanname="scala.Predef.String"class="extype">String</span>, <ahref="pool/NumberPool.html"name="net.psforever.objects.guid.pool.NumberPool"id="net.psforever.objects.guid.pool.NumberPool"class="extype">NumberPool</a>]</span></span><pclass="shortcomment cmt">na</p><divclass="fullcomment"><divclass="comment cmt"><p>na</p></div><dlclass="paramcmts block"><dt>returns</dt><ddclass="cmt"><p>na</p></dd></dl></div></li><liclass="indented0 "name="net.psforever.objects.guid.NumberPoolHub#RemovePool"group="Ungrouped"fullComment="yes"data-isabs="false"visbl="pub"><aid="RemovePool(name:String):List[Int]"></a><aid="RemovePool(String):List[Int]"></a><spanclass="permalink"><ahref="../../../../net/psforever/objects/guid/NumberPoolHub.html#RemovePool(name:String):List[Int]"title="Permalink"><iclass="material-icons"></i></a></span><spanclass="modifier_kind"><spanclass="modifier"></span><spanclass="kind">def</span></span><spanclass="symbol"><spanclass="name">RemovePool</span><spanclass="params">(<spanname="name">name: <spanname="scala.Predef.String"class="extype">String</span></span>)</span><spanclass="result">: <spanname="scala.List"class="extype">List</span>[<spanname="scala.Int"class="extype">Int</span>]</span></span><pclass="shortcomment cmt">Remove an existing number pool with the given label from the list of number pools.<br>
<br>
Removing number pools is a task that should only be performed at whatever counts as the termination stage.</p><divclass="fullcomment"><divclass="comment cmt"><p>Remove an existing number pool with the given label from the list of number pools.<br>
<br>
Removing number pools is a task that should only be performed at whatever counts as the termination stage.
All the same reasoning applies as with <code>AddPool</code> above.
Although an easy operation would move all the assigned numbers in the removing pool to the "generic" pool,
doing so is ill-advised both for the reasoning above and because that creates unreliability.</p></div><dlclass="paramcmts block"><dtclass="param">name</dt><ddclass="cmt"><p>the name of the pool</p></dd><dt>returns</dt><ddclass="cmt"><p>the <code>List</code> of numbers that belonged to the pool</p></dd></dl><dlclass="attributes block"><dt>Exceptions thrown</dt><dd><spanclass="cmt"><p><spanname="IllegalArgumentException"class="extype"><code>IllegalArgumentException</code></span> if the pool doesn't exist or is not removed (removable)</p></span></dd></dl></div></li><liclass="indented0 "name="net.psforever.objects.guid.NumberPoolHub#WhichPool"group="Ungrouped"fullComment="yes"data-isabs="false"visbl="pub"><aid="WhichPool(obj:net.psforever.objects.entity.IdentifiableEntity):Option[String]"></a><aid="WhichPool(IdentifiableEntity):Option[String]"></a><spanclass="permalink"><ahref="../../../../net/psforever/objects/guid/NumberPoolHub.html#WhichPool(obj:net.psforever.objects.entity.IdentifiableEntity):Option[String]"title="Permalink"><iclass="material-icons"></i></a></span><spanclass="modifier_kind"><spanclass="modifier"></span><spanclass="kind">def</span></span><spanclass="symbol"><spanclass="name">WhichPool</span><spanclass="params">(<spanname="obj">obj: <ahref="../entity/IdentifiableEntity.html"name="net.psforever.objects.entity.IdentifiableEntity"id="net.psforever.objects.entity.IdentifiableEntity"class="extype">IdentifiableEntity</a></span>)</span><spanclass="result">: <spanname="scala.Option"class="extype">Option</span>[<spanname="scala.Predef.String"class="extype">String</span>]</span></span><pclass="shortcomment cmt">Reference a specific number's pool.<br>
<br>
<code>WhichPool(IdentifiableEntity)</code> does require the object to be registered to be found.</p><divclass="fullcomment"><divclass="comment cmt"><p>Reference a specific number's pool.<br>
<br>
<code>WhichPool(IdentifiableEntity)</code> does require the object to be registered to be found.
It checks that the object is registered, and that it is registered to the local source object.</p></div><dlclass="paramcmts block"><dtclass="param">obj</dt><ddclass="cmt"><p>an object</p></dd><dt>returns</dt><ddclass="cmt"><p>the name of the number pool to which this item belongs</p></dd></dl></div></li><liclass="indented0 "name="net.psforever.objects.guid.NumberPoolHub#WhichPool"group="Ungrouped"fullComment="yes"data-isabs="false"visbl="pub"><aid="WhichPool(number:Int):Option[String]"></a><aid="WhichPool(Int):Option[String]"></a><spanclass="permalink"><ahref="../../../../net/psforever/objects/guid/NumberPoolHub.html#WhichPool(number:Int):Option[String]"title="Permalink"><iclass="material-icons"></i></a></span><spanclass="modifier_kind"><spanclass="modifier"></span><spanclass="kind">def</span></span><spanclass="symbol"><spanclass="name">WhichPool</span><spanclass="params">(<spanname="number">number: <spanname="scala.Int"class="extype">Int</span></span>)</span><spanclass="result">: <spanname="scala.Option"class="extype">Option</span>[<spanname="scala.Predef.String"class="extype">String</span>]</span></span><pclass="shortcomment cmt">Reference a specific number's pool.<br>
<br>
<code>WhichPool(Int)</code> does not require the number to be registered at the time it is used.</p><divclass="fullcomment"><divclass="comment cmt"><p>Reference a specific number's pool.<br>
<br>
<code>WhichPool(Int)</code> does not require the number to be registered at the time it is used.
It does not return anything for an unregistered unpooled number -
a number that would be part of the "generic" nonstandard pool.
It only reports "generic" if that number is registered.
It will not return correctly for any number that is in the "restricted" pool.</p></div><dlclass="paramcmts block"><dtclass="param">number</dt><ddclass="cmt"><p>a number</p></dd><dt>returns</dt><ddclass="cmt"><p>the name of the number pool to which this item belongs</p></dd></dl></div></li><liclass="indented0 "name="net.psforever.objects.guid.NumberPoolHub#apply"group="Ungrouped"fullComment="yes"data-isabs="false"visbl="pub"><aid="apply(number:Int):Option[net.psforever.objects.entity.IdentifiableEntity]"></a><aid="apply(Int):Option[IdentifiableEntity]"></a><spanclass="permalink"><ahref="../../../../net/psforever/objects/guid/NumberPoolHub.html#apply(number:Int):Option[net.psforever.objects.entity.IdentifiableEntity]"title="Permalink"><iclass="material-icons"></i></a></span><spanclass="modifier_kind"><spanclass="modifier"></span><spanclass="kind">def</span></span><spanclass="symbol"><spanclass="name">apply</span><spanclass="params">(<spanname="number">number: <spanname="scala.Int"class="extype">Int</span></span>)</span><spanclass="result">: <spanname="scala.Option"class="extype">Option</span>[<ahref="../entity/IdentifiableEntity.html"name="net.psforever.objects.entity.IdentifiableEntity"id="net.psforever.objects.entity.IdentifiableEntity"class="extype">IdentifiableEntity</a>]</span></span><pclass="shortcomment cmt">Given a globally unique identifier, return any object registered to it.<br>
<br>
Use:<br>
For <code>val obj = new NumberPoolHub(...)</code> use <code>obj(number)</code>.</p><divclass="fullcomment"><divclass="comment cmt"><p>Given a globally unique identifier, return any object registered to it.<br>
<br>
Use:<br>
For <code>val obj = new NumberPoolHub(...)</code> use <code>obj(number)</code>.</p></div><dlclass="paramcmts block"><dtclass="param">number</dt><ddclass="cmt"><p>the unique number to attempt to retrieve from the <code>source</code></p></dd><dt>returns</dt><ddclass="cmt"><p>the object that is assigned to the number</p></dd></dl></div></li><liclass="indented0 "name="net.psforever.objects.guid.NumberPoolHub#apply"group="Ungrouped"fullComment="yes"data-isabs="false"visbl="pub"><aid="apply(number:net.psforever.types.PlanetSideGUID):Option[net.psforever.objects.entity.IdentifiableEntity]"></a><aid="apply(PlanetSideGUID):Option[IdentifiableEntity]"></a><spanclass="permalink"><ahref="../../../../net/psforever/objects/guid/NumberPoolHub.html#apply(number:net.psforever.types.PlanetSideGUID):Option[net.psforever.objects.entity.IdentifiableEntity]"title="Permalink"><iclass="material-icons"></i></a></span><spanclass="modifier_kind"><spanclass="modifier"></span><spanclass="kind">def</span></span><spanclass="symbol"><spanclass="name">apply</span><spanclass="params">(<spanname="number">number: <ahref="../../types/PlanetSideGUID.html"name="net.psforever.types.PlanetSideGUID"id="net.psforever.types.PlanetSideGUID"class="extype">PlanetSideGUID</a></span>)</span><spanclass="result">: <spanname="scala.Option"class="extype">Option</span>[<ahref="../entity/IdentifiableEntity.html"name="net.psforever.objects.entity.IdentifiableEntity"id="net.psforever.objects.entity.IdentifiableEntity"class="extype">IdentifiableEntity</a>]</span></span><pclass="shortcomment cmt">Given a globally unique identifier, return any object registered to it.<br>
<br>
Use:<br>
For <code>val obj = new NumberPoolHub(...)</code> use <code>obj(number)</code>.</p><divclass="fullcomment"><divclass="comment cmt"><p>Given a globally unique identifier, return any object registered to it.<br>
<br>
Use:<br>
For <code>val obj = new NumberPoolHub(...)</code> use <code>obj(number)</code>.</p></div><dlclass="paramcmts block"><dtclass="param">number</dt><ddclass="cmt"><p>the unique number to attempt to retrieve from the <code>source</code></p></dd><dt>returns</dt><ddclass="cmt"><p>the object that is assigned to the number</p></dd></dl></div></li><liclass="indented0 "name="scala.Any#asInstanceOf"group="Ungrouped"fullComment="yes"data-isabs="false"visbl="pub"><aid="asInstanceOf[T0]:T0"></a><spanclass="permalink"><ahref="../../../../net/psforever/objects/guid/NumberPoolHub.html#asInstanceOf[T0]:T0"title="Permalink"><iclass="material-icons"></i></a></span><spanclass="modifier_kind"><spanclass="modifier">final </span><spanclass="kind">def</span></span><spanclass="symbol"><spanclass="name">asInstanceOf</span><spanclass="tparams">[<spanname="T0">T0</span>]</span><spanclass="result">: <spanname="scala.Any.asInstanceOf.T0"class="extype">T0</span></span></span><divclass="fullcomment"><dlclass="attributes block"><dt>Definition Classes</dt><dd>Any</dd></dl></div></li><liclass="indented0 "name="scala.AnyRef#clone"group="Ungrouped"fullComment="yes"data-isabs="false"visbl="prt"><aid="clone():Object"></a><aid="clone():AnyRef"></a><spanclass="permalink"><ahref="../../../../net/psforever/objects/guid/NumberPoolHub.html#clone():Object"title="Permalink"><iclass="material-icons"></i></a></span><spanclass="modifier_kind"><spanclass="modifier"></span><spanclass="kind">def</span></span><spanclass="symbol"><spanclass="name">clone</span><spanclass="params">()</span><spanclass="result">: <spanname="scala.AnyRef"class="extype">AnyRef</span></span></span><divclass="fullcomment"><dlclass="attributes block"><dt>Attributes</dt><dd>protected[<spanname="java.lang"class="extype">lang</span>] </dd><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd><spanclass="name">@throws</span><spanclass="args">(<span><spanclass="defval">classOf[java.lang.CloneNotSupportedException]</span></span>)</span><spanclass="name">@native</span><spanclass="args">()</span></dd></dl></div></li><liclass="indented0 "name="scala.AnyRef#eq"group="Ungrouped"fullComment="yes"data-isabs="false"visbl="pub"><aid="eq(x$1:AnyRef):Boolean"></a><aid="eq(AnyRef):Boolean"></a><spanclass="permalink"><ahref="../../../../net/psforever/objects/guid/NumberPoolHub.html#eq(x$1:AnyRef):Boolean"title="Permalink"><iclass="material-icons"></i></a></span><spanclass="modifier_kind"><spanclass="modifier">final </span><spanclass="kind">def</span></span><spanclass="symbol"><spanclass="name">eq</span><spanclass="params">(<spanname="arg0">arg0: <spanname="scala.AnyRef"class="extype">AnyRef</span></span>)</span><spanclass="result">: <spanname="scala.Boolean"class="extype">Boolean</span></span></span><divclass="fullcomment"><dlclass="attributes block"><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div></li><liclass="indented0 "name="scala.AnyRef#equals"group="Ungrouped"fullComment="yes"data-isabs="false"visbl="pub"><aid="equals(x$1:Object):Boolean"></a><aid="equals(AnyRef):Boolean"></a><spanclass="permalink"><ahref="../../../../net/psforever/objects/guid/NumberPoolHub.html#equals(x$1:Object):Boolean"title="Permalink"><iclass="material-icons"></i></a></span><spanclass="modifier_kind"><spanclass="modifier"></span><spanclass="kind">def</span></span><spanclass="symbol"><spanclass="name">equals</span><spanclass="params">(<spanname="arg0">arg0: <spanname="scala.AnyRef"class="extype">AnyRef</span></span>)</span><spanclass="result">: <spanname="scala.Boolean"class="extype">Boolean</span></span></span><divclass="fullcomment"><dlclass="attributes block"><dt>Definition Classes</dt><dd>AnyRef → Any</dd></dl></div></li><liclass="indented0 "name="scala.AnyRef#finalize"group="Ungrouped"fullComment="yes"data-isabs="false"visbl="prt"><aid="finalize():Unit"></a><spanclass="permalink"><ahref="../../../../net/psforever/objects/guid/NumberPoolHub.html#finalize():Unit"title="Perm
<br>
Two conditions are necessary to determine this condition for numbers.</p><divclass="fullcomment"><divclass="comment cmt"><p>Determines if the number is registered.<br>
<br>
Two conditions are necessary to determine this condition for numbers.
(1) A registered number is known to the <code>source</code>.
(2) A register number is known as <code>Leased</code> to the <code>source</code>.</p></div><dlclass="paramcmts block"><dtclass="param">number</dt><ddclass="cmt"><p>the number previously assigned(?)</p></dd><dt>returns</dt><ddclass="cmt"><p><code>true</code>, if the number is registered; <code>false</code>, otherwise</p></dd></dl><dlclass="attributes block"><dt>See also</dt><dd><spanclass="cmt"><p><code>isRegistered(IdentifiableEntity)</code></p></span></dd></dl></div></li><liclass="indented0 "name="net.psforever.objects.guid.NumberPoolHub#isRegistered"group="Ungrouped"fullComment="yes"data-isabs="false"visbl="pub"><aid="isRegistered(obj:net.psforever.objects.entity.IdentifiableEntity):Boolean"></a><aid="isRegistered(IdentifiableEntity):Boolean"></a><spanclass="permalink"><ahref="../../../../net/psforever/objects/guid/NumberPoolHub.html#isRegistered(obj:net.psforever.objects.entity.IdentifiableEntity):Boolean"title="Permalink"><iclass="material-icons"></i></a></span><spanclass="modifier_kind"><spanclass="modifier"></span><spanclass="kind">def</span></span><spanclass="symbol"><spanclass="name">isRegistered</span><spanclass="params">(<spanname="obj">obj: <ahref="../entity/IdentifiableEntity.html"name="net.psforever.objects.entity.IdentifiableEntity"id="net.psforever.objects.entity.IdentifiableEntity"class="extype">IdentifiableEntity</a></span>)</span><spanclass="result">: <spanname="scala.Boolean"class="extype">Boolean</span></span></span><pclass="shortcomment cmt">Determines if the object is registered.<br>
<br>
Three conditions are necessary to determine this condition for objects.</p><divclass="fullcomment"><divclass="comment cmt"><p>Determines if the object is registered.<br>
<br>
Three conditions are necessary to determine this condition for objects.
(1) A registered object has a globally unique identifier.
(2) A registered object is known to the <code>source</code> by that identifier.
(3) The registered object can be found attached to that entry from the source.</p></div><dlclass="paramcmts block"><dtclass="param">obj</dt><ddclass="cmt"><p>an object</p></dd><dt>returns</dt><ddclass="cmt"><p><code>true</code>, if the number is registered; <code>false</code>, otherwise</p></dd></dl><dlclass="attributes block"><dt>See also</dt><dd><spanclass="cmt"><p><code>isRegistered(Int)</code></p></span></dd></dl></div></li><liclass="indented0 "name="scala.AnyRef#ne"group="Ungrouped"fullComment="yes"data-isabs="false"visbl="pub"><aid="ne(x$1:AnyRef):Boolean"></a><aid="ne(AnyRef):Boolean"></a><spanclass="permalink"><ahref="../../../../net/psforever/objects/guid/NumberPoolHub.html#ne(x$1:AnyRef):Boolean"title="Permalink"><iclass="material-icons"></i></a></span><spanclass="modifier_kind"><spanclass="modifier">final </span><spanclass="kind">def</span></span><spanclass="symbol"><spanclass="name">ne</span><spanclass="params">(<spanname="arg0">arg0: <spanname="scala.AnyRef"class="extype">AnyRef</span></span>)</span><spanclass="result">: <spanname="scala.Boolean"class="extype">Boolean</span></span></span><divclass="fullcomment"><dlclass="attributes block"><dt>Definition Classes</dt><dd>AnyRef</dd></dl></div></li><liclass="indented0 "name="scala.AnyRef#notify"group="Ungrouped"fullComment="yes"data-isabs="false"visbl="pub"><aid="notify():Unit"></a><spanclass="permalink"><ahref="../../../../net/psforever/objects/guid/NumberPoolHub.html#notify():Unit"title="Permalink"><iclass="material-icons"></i></a></span><spanclass="modifier_kind"><spanclass="modifier">final </span><spanclass="kind">def</span></span><spanclass="symbol"><spanclass="name">notify</span><spanclass="params">()</span><spanclass="result">: <spanname="scala.Unit"class="extype">Unit</span></span></span><divclass="fullcomment"><dlclass="attributes block"><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd><spanclass="name">@native</span><spanclass="args">()</span></dd></dl></div></li><liclass="indented0 "name="scala.AnyRef#notifyAll"group="Ungrouped"fullComment="yes"data-isabs="false"visbl="pub"><aid="notifyAll():Unit"></a><spanclass="permalink"><ahref="../../../../net/psforever/objects/guid/NumberPoolHub.html#notifyAll():Unit"title="Permalink"><iclass="material-icons"></i></a></span><spanclass="modifier_kind"><spanclass="modifier">final </span><spanclass="kind">def</span></span><spanclass="symbol"><spanclass="name">notifyAll</span><spanclass="params">()</span><spanclass="result">: <spanname="scala.Unit"class="extype">Unit</span></span></span><divclass="fullcomment"><dlclass="attributes block"><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd><spanclass="name">@native</span><spanclass="args">()</span></dd></dl></div></li><liclass="indented0 "name="net.psforever.objects.guid.NumberPoolHub#register"group="Ungrouped"fullComment="yes"data-isabs="false"visbl="pub"><aid="register(name:String):scala.util.Try[net.psforever.objects.guid.key.LoanedKey]"></a><aid="register(String):Try[LoanedKey]"></a><spanclass="permalink"><ahref="../../../../net/psforever/objects/guid/NumberPoolHub.html#register(name:String):scala.util.Try[net.psforever.objects.guid.key.LoanedKey]"title="Permalink"><iclass="material-icons"></i></a></span><spanclass="modifier_kind"><spanclass="modifier"></span><spanclass="kind">def</span></span><spanclass="symbol"><spanclass="name">register</span><spanclass="params">(<spanname="name">name: <spanname="scala.Predef.String"class="extype">String</span></span>)</span><spanclass="result">: <spanname="scala.util.Try"class="extype">Try</span>[<ahref="key/LoanedKey.html"name="net.psforever.objects.guid.key.LoanedKey"id="net.psforever.objects.guid.key.LoanedKey"class="extype">LoanedKey</a>]</span></span><pclass="shortcomment cmt">Register a number selected automatically from the named pool.</p><divclass="fullcomment"><divclass="comment cmt"><p>Register a number selected automatically from the named pool.
by actually finding the object itself, if it exists.</p><divclass="fullcomment"><divclass="comment cmt"><p>Unregister a specific object
by actually finding the object itself, if it exists.</p></div><dlclass="paramcmts block"><dtclass="param">obj</dt><ddclass="cmt"><p>an object being unregistered</p></dd><dtclass="param">msg</dt><ddclass="cmt"><p>custom error message;
has a vague default</p></dd><dt>returns</dt><ddclass="cmt"><p>the number associated with this object</p></dd></dl></div></li><liclass="indented0 "name="net.psforever.objects.guid.NumberPoolHub#unregister_GetPoolFromObject"group="Ungrouped"fullComment="no"data-isabs="false"visbl="pub"><aid="unregister_GetPoolFromObject(obj:net.psforever.objects.entity.IdentifiableEntity):scala.util.Try[net.psforever.objects.guid.pool.NumberPool]"></a><aid="unregister_GetPoolFromObject(IdentifiableEntity):Try[NumberPool]"></a><spanclass="permalink"><ahref="../../../../net/psforever/objects/guid/NumberPoolHub.html#unregister_GetPoolFromObject(obj:net.psforever.objects.entity.IdentifiableEntity):scala.util.Try[net.psforever.objects.guid.pool.NumberPool]"title="Permalink"><iclass="material-icons"></i></a></span><spanclass="modifier_kind"><spanclass="modifier"></span><spanclass="kind">def</span></span><spanclass="symbol"><spanclass="name">unregister_GetPoolFromObject</span><spanclass="params">(<spanname="obj">obj: <ahref="../entity/IdentifiableEntity.html"name="net.psforever.objects.entity.IdentifiableEntity"id="net.psforever.objects.entity.IdentifiableEntity"class="extype">IdentifiableEntity</a></span>)</span><spanclass="result">: <spanname="scala.util.Try"class="extype">Try</span>[<ahref="pool/NumberPool.html"name="net.psforever.objects.guid.pool.NumberPool"id="net.psforever.objects.guid.pool.NumberPool"class="extype">NumberPool</a>]</span></span></li><liclass="indented0 "name="scala.AnyRef#wait"group="Ungrouped"fullComment="yes"data-isabs="false"visbl="pub"><aid="wait():Unit"></a><spanclass="permalink"><ahref="../../../../net/psforever/objects/guid/NumberPoolHub.html#wait():Unit"title="Permalink"><iclass="material-icons"></i></a></span><spanclass="modifier_kind"><spanclass="modifier">final </span><spanclass="kind">def</span></span><spanclass="symbol"><spanclass="name">wait</span><spanclass="params">()</span><spanclass="result">: <spanname="scala.Unit"class="extype">Unit</span></span></span><divclass="fullcomment"><dlclass="attributes block"><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd><spanclass="name">@throws</span><spanclass="args">(<span><spanclass="defval">classOf[java.lang.InterruptedException]</span></span>)</span></dd></dl></div></li><liclass="indented0 "name="scala.AnyRef#wait"group="Ungrouped"fullComment="yes"data-isabs="false"visbl="pub"><aid="wait(x$1:Long,x$2:Int):Unit"></a><aid="wait(Long,Int):Unit"></a><spanclass="permalink"><ahref="../../../../net/psforever/objects/guid/NumberPoolHub.html#wait(x$1:Long,x$2:Int):Unit"title="Permalink"><iclass="material-icons"></i></a></span><spanclass="modifier_kind"><spanclass="modifier">final </span><spanclass="kind">def</span></span><spanclass="symbol"><spanclass="name">wait</span><spanclass="params">(<spanname="arg0">arg0: <spanname="scala.Long"class="extype">Long</span></span>, <spanname="arg1">arg1: <spanname="scala.Int"class="extype">Int</span></span>)</span><spanclass="result">: <spanname="scala.Unit"class="extype">Unit</span></span></span><divclass="fullcomment"><dlclass="attributes block"><dt>Definition Classes</dt><dd>AnyRef</dd><dt>Annotations</dt><dd><spanclass="name">@throws</span><spanclass="args">(<span><spanclass="defval">classOf[java.lang.InterruptedException]</span></span>)</span></dd></dl></div></li><liclass="indented0 "name="scala.AnyRef#wait"group="Ungrouped"fullComment="yes"data-isabs="false"visbl="pub"><aid="wait(x$1:Long):Unit"></a><aid="wait(Long):Unit"></a><spanclass="permalink"><ahref="../../../../net/psforever/objects/guid/NumberPoolHub.html#wait(x$1:Long):Unit"title="Permalink"><iclass="material-icons"></i></a></span><spanclass="modifier_kind"><spanclass="modifier">final </span><spanclass="kind">def</span></span><spanclass="symbol"><spanclass="name">wait</span><spanclass="params">(<spanname="arg0">arg0: <spanname="scala.Long"class="extype">Long</span></span>)</span><spanclass="result">: <spann