public final class Ip4AddressRegister extends Object implements ScalarRegister, Ip4AddressSettable
Ip4AddressValued object.| Constructor and Description |
|---|
Ip4AddressRegister()
Creates a new null-valued register.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
asAddress()
Gets the contained raw IPv4 address value.
|
Inet4Address |
asInet4Address()
Gets the contained IP address as an Inet4Address.
|
ScalarTokenType |
getType()
Gets the data type of the token.
|
boolean |
isNull()
Indicates whether the token is null valued.
|
boolean |
isZero()
Indicates whether the value is the zero value
for the type.
|
void |
set(byte[] value)
Sets the container to the given raw ip value.
|
void |
set(Inet4Address value)
Sets the container to the given Inet4Address value.
|
void |
set(TokenValued value)
Sets the contained value to the given token value.
|
void |
setNull()
Sets the contained value to be null valued.
|
void |
setZero()
Sets the contained value to be zero valued.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetType, isZeroisNullpublic Ip4AddressRegister()
public void setNull()
TokenSettablesetNull in interface TokenSettablepublic void setZero()
TokenSettablesetZero in interface TokenSettablepublic void set(byte[] value)
Ip4AddressSettableset in interface Ip4AddressSettablevalue - raw address value to which to set the containerpublic void set(Inet4Address value)
Ip4AddressSettableset in interface Ip4AddressSettablevalue - Inet4Address value to which to set the containerpublic void set(TokenValued value)
TokenSettableset in interface TokenSettablevalue - the value to which to set the containerpublic final ScalarTokenType getType()
TokenValuedgetType in interface ScalarValuedgetType in interface TokenValuedgetType in interface ScalarTypedgetType in interface TokenTypedpublic final byte[] asAddress()
Ip4AddressValuedasAddress in interface Ip4AddressValuedbyte[4]. If null valued,
as indicated by TokenValued.isNull(), null
is returned.public final Inet4Address asInet4Address()
Ip4AddressValuedasInet4Address in interface Ip4AddressValuedInet4Address. If null valued,
as indicated by TokenValued.isNull(), null
is returned.public final boolean isZero()
ScalarValuedisZero in interface ScalarValuedtrue if the value is the zero value,
false otherwise.public final boolean isNull()
TokenValuedisNull in interface TokenValuedtrue if the token is null valued,
false otherwiseCopyright © 2020 Actian Corporation. All rights reserved.