Interface Ip4AddressValued

All Superinterfaces:
ScalarTyped, ScalarValued, TokenTyped, TokenValued
All Known Subinterfaces:
Ip4AddressInputField, Ip4AddressValuedIterator
All Known Implementing Classes:
Ip4AddressRegister, Ip4AddressToken, NullToken

public interface Ip4AddressValued extends ScalarValued
A TokenValued object containing a ip4 address value.
See Also:
  • TokenTypeConstant#IP4ADDRESS
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    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, isZero

    Methods 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 by TokenValued.isNull(), null is returned.
    • asInet4Address

      Inet4Address asInet4Address()
      Gets the contained IP address as an Inet4Address.
      Returns:
      the contained value as a Inet4Address. If null valued, as indicated by TokenValued.isNull(), null is returned.