public class Addr64Factory extends Object implements IAddressFactory2
| Constructor and Description |
|---|
Addr64Factory() |
| Modifier and Type | Method and Description |
|---|---|
IAddress |
createAddress(BigInteger addr)
Create address from a BigInteger
|
IAddress |
createAddress(BigInteger addr,
boolean truncate)
|
IAddress |
createAddress(long addr) |
IAddress |
createAddress(String addr)
Creates address from string representation.
|
IAddress |
createAddress(String addr,
boolean truncate)
|
IAddress |
createAddress(String addr,
int radix)
Creates address from string with given radix.
|
IAddress |
createAddress(String addr,
int radix,
boolean truncate)
|
IAddress |
getMax()
Returns maximal address.
|
IAddress |
getZero()
Returns zero address, i.e.
|
public IAddress getZero()
IAddressFactorygetZero in interface IAddressFactorypublic IAddress getMax()
IAddressFactorygetMax in interface IAddressFactorypublic IAddress createAddress(String addr)
IAddressFactorycreateAddress in interface IAddressFactorypublic IAddress createAddress(String addr, boolean truncate)
IAddressFactory2IAddressFactory.createAddress(String).
Same contract except that the constructor will throw
a NumberFormatException if the supplied initializer value
is out of range (when 'truncate' is false). IAddressFactory
methods implicitly truncate if the value is out of range.createAddress in interface IAddressFactory2public IAddress createAddress(String addr, int radix)
IAddressFactorycreateAddress in interface IAddressFactorypublic IAddress createAddress(String addr, int radix, boolean truncate)
IAddressFactory2IAddressFactory.createAddress(String, int).
Same contract except that the constructor will throw
a NumberFormatException if the supplied initializer value
is out of range (when 'truncate' is false). IAddressFactory
methods implicitly truncate if the value is out of range.createAddress in interface IAddressFactory2public IAddress createAddress(BigInteger addr)
IAddressFactorycreateAddress in interface IAddressFactorypublic IAddress createAddress(BigInteger addr, boolean truncate)
IAddressFactory2IAddressFactory.createAddress(BigInteger).
Same contract except that the constructor will throw
a NumberFormatException if the supplied initializer value
is out of range (when 'truncate' is false). IAddressFactory
methods implicitly truncate if the value is out of range.createAddress in interface IAddressFactory2public IAddress createAddress(long addr)
Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.