public class ShortNumberAllocator extends NumberAllocator
Title: Framework Support Library
Description: Extends the NumberAllocator
for short numbers.
Framework Documentation
Copyright: Copyright (c) 2009
Company: StreamScape Technologies
DEFAULT_SERIAL_VERSION_ID
Constructor and Description |
---|
ShortNumberAllocator()
Constructs a new allocator.
|
Modifier and Type | Method and Description |
---|---|
ShortNumberAllocator |
clone()
Clones the object.
|
short |
getNumber()
Returns an available (non-assigned) number from the pool.
|
void |
releaseNumber(short number)
Releases the specified number (returns this number back into the pool).
|
clear
getSerialVersionUID
public short getNumber() throws NumberAllocatorException
FabricException
- if the pool does not contain available numbers.NumberAllocatorException
public void releaseNumber(short number)
number
- the released number.public ShortNumberAllocator clone()
clone
in interface CloneableObject
clone
in class NumberAllocator
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.