- All Superinterfaces:
ScalarTyped,ScalarValued,TokenTyped,TokenValued
- All Known Subinterfaces:
Ip4AddressInputField,Ip4AddressValuedIterator
- All Known Implementing Classes:
Ip4AddressRegister,Ip4AddressToken,NullToken
A
TokenValued object containing a ip4 address value.- See Also:
-
TokenTypeConstant#IP4ADDRESS
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]Gets the contained raw IPv4 address value.Gets the contained IP address as an Inet4Address.Methods inherited from interface com.pervasive.datarush.tokens.scalar.ScalarValued
getType, isZeroMethods inherited from interface com.pervasive.datarush.tokens.TokenValued
isNull
-
Method Details
-
asAddress
byte[] asAddress()Gets the contained raw IPv4 address value. The array returned is a copy of the binary data contained in the object.- Returns:
- the contained value as a
byte[4]. If null valued, as indicated byTokenValued.isNull(),nullis returned.
-
asInet4Address
Inet4Address asInet4Address()Gets the contained IP address as an Inet4Address.- Returns:
- the contained value as a
Inet4Address. If null valued, as indicated byTokenValued.isNull(),nullis returned.
-