public class OAGuidIp4 extends Object
The amount of bits needed is then used to right shift any bits not needed (which keeps the number smaller)
Constructor and Description |
---|
OAGuidIp4(int bitsNeeded,
boolean... bAddExtraBits)
Create new Guid based on IP 4th octet, and any added extra bits.
|
Modifier and Type | Method and Description |
---|---|
int |
getBitsAvailable() |
int |
getBitsUsed() |
long |
getMaxValue() |
long |
getNextId()
Get the next
|
void |
init() |
static void |
main(String[] args) |
public OAGuidIp4(int bitsNeeded, boolean... bAddExtraBits)
bitsNeeded
- number of bits that are needed, will be used when determining the actual bits that are used.bAddExtraBits
- that can be used.public long getNextId()
public void init()
public int getBitsUsed()
public int getBitsAvailable()
public long getMaxValue()
public static void main(String[] args)
Copyright © 1999–2025 ViaOA. All rights reserved.