public final class Ip6AddressRegister extends Object implements ScalarRegister, Ip6AddressSettable
Ip6AddressValued
object.Constructor and Description |
---|
Ip6AddressRegister()
Creates a new null-valued register.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
asAddress()
Gets the contained raw IP6 address value.
|
Inet6Address |
asInet6Address()
Gets the contained IP address as an Inet6Address.
|
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(Inet6Address value)
Sets the container to the given Inet6Address 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, wait
getType, isZero
isNull
public Ip6AddressRegister()
public void setNull()
TokenSettable
setNull
in interface TokenSettable
public void setZero()
TokenSettable
setZero
in interface TokenSettable
public void set(byte[] value)
Ip4AddressSettable
set
in interface Ip4AddressSettable
value
- raw address value to which to set the containerpublic void set(Inet4Address value)
Ip4AddressSettable
set
in interface Ip4AddressSettable
value
- Inet4Address value to which to set the containerpublic void set(Inet6Address value)
Ip6AddressSettable
set
in interface Ip6AddressSettable
value
- Inet6Address value to which to set the containerpublic void set(TokenValued value)
TokenSettable
set
in interface TokenSettable
value
- the value to which to set the containerpublic final ScalarTokenType getType()
TokenValued
getType
in interface ScalarValued
getType
in interface TokenValued
getType
in interface ScalarTyped
getType
in interface TokenTyped
public final byte[] asAddress()
Ip6AddressValued
asAddress
in interface Ip6AddressValued
byte[16]
. If null valued,
as indicated by TokenValued.isNull()
, null
is returned.public final Inet6Address asInet6Address()
Ip6AddressValued
asInet6Address
in interface Ip6AddressValued
Inet6Address
. If null valued,
as indicated by TokenValued.isNull()
, null
is returned.public final boolean isZero()
ScalarValued
isZero
in interface ScalarValued
true
if the value is the zero value,
false
otherwise.public final boolean isNull()
TokenValued
isNull
in interface TokenValued
true
if the token is null valued,
false
otherwiseCopyright © 2020 Actian Corporation. All rights reserved.