public class Addr32Factory extends Object implements IAddressFactory2
Constructor and Description |
---|
Addr32Factory() |
Modifier and Type | Method and Description |
---|---|
IAddress |
createAddress(BigInteger addr)
Create address from a BigInteger
|
IAddress |
createAddress(BigInteger addr,
boolean truncate)
|
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()
IAddressFactory
getZero
in interface IAddressFactory
public IAddress getMax()
IAddressFactory
getMax
in interface IAddressFactory
public IAddress createAddress(String addr)
IAddressFactory
createAddress
in interface IAddressFactory
public IAddress createAddress(String addr, boolean truncate)
IAddressFactory2
IAddressFactory.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 IAddressFactory2
public IAddress createAddress(String addr, int radix)
IAddressFactory
createAddress
in interface IAddressFactory
public IAddress createAddress(String addr, int radix, boolean truncate)
IAddressFactory2
IAddressFactory.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 IAddressFactory2
public IAddress createAddress(BigInteger addr)
IAddressFactory
createAddress
in interface IAddressFactory
public IAddress createAddress(BigInteger addr, boolean truncate)
IAddressFactory2
IAddressFactory.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 IAddressFactory2
Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.