public interface AddressItem
extends java.io.Serializable
The basic difference between the AddressComponent hierarchy and the AddressDivision hierarchy is that
AddressComponent hierarchy uses
AddressDivision allows alternative arrangements, such as inet_aton style of presenting ipv4 in fewer divisions, or base 85 for ipv6 which does not even use a base that is a power of 2 (and hence so subdivisions possibly using bit boundaries), or the aaa-bbb-ccc-ddd mac format with which segments are not divided along byte boundaries
Parsing creates objects in the AddressComponent hierarchy, which can then be used to create alternative arrangements using AddressDivisionGrouping
or AddressStringDivisionSeries
Modifier and Type | Method and Description |
---|---|
int |
getBitCount() |
byte[] |
getBytes() |
byte[] |
getBytes(byte[] bytes)
Copies the bytes of the smallest address item represented by this address item into the supplied array,
and returns that array.
|
java.math.BigInteger |
getCount()
The count of possible distinct values for this AddressComponent.
|
byte[] |
getUpperBytes() |
byte[] |
getUpperBytes(byte[] bytes)
Copies the bytes of the largest address item represented by this address item into the supplied array,
and returns that array.
|
boolean |
includesMax() |
boolean |
includesZero() |
boolean |
isFullRange() |
boolean |
isMax() |
boolean |
isMultiple()
Whether this represents multiple potential values (eg a prefixed address or a segment representing a range of values)
|
boolean |
isZero() |
java.math.BigInteger getCount()
int getBitCount()
boolean isMultiple()
byte[] getBytes()
byte[] getBytes(byte[] bytes)
byte[] getUpperBytes()
byte[] getUpperBytes(byte[] bytes)
boolean isZero()
boolean includesZero()
boolean isMax()
boolean includesMax()
boolean isFullRange()