-
- All Superinterfaces:
ScalarTyped,ScalarValued,TokenTyped,TokenValued
- All Known Subinterfaces:
Ip4AddressInputField,Ip4AddressValuedIterator
- All Known Implementing Classes:
Ip4AddressRegister,Ip4AddressToken,NullToken
public interface Ip4AddressValued extends ScalarValued
ATokenValuedobject containing a ip4 address value.- See Also:
TokenTypeConstant#IP4ADDRESS
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]asAddress()Gets the contained raw IPv4 address value.Inet4AddressasInet4Address()Gets the contained IP address as an Inet4Address.-
Methods inherited from interface com.pervasive.datarush.tokens.scalar.ScalarValued
getType, isZero
-
Methods inherited from interface com.pervasive.datarush.tokens.TokenValued
isNull
-
-
-
-
Method Detail
-
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.
-
-