Interface Network.Inet<T>

All Superinterfaces:
Adapter.Contract<T>, Adapter.Contract.Scalar<T>
Enclosing interface:
Network
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface Network.Inet<T> extends Adapter.Contract.Scalar<T>
The INET and CIDR types' PostgreSQL semantics: the family (INET or INET6), the number of network prefix bits, and the address bytes in network byte order.
  • Method Details

    • construct

      T construct(StandardProtocolFamily addressFamily, int networkPrefixBits, byte[] networkOrderAddress)
      Constructs a representation T from the components of the PostgreSQL data type.
      Parameters:
      addressFamily - INET or INET6
      networkPrefixBits - nonnegative, not greater than 32 for INET or 128 for INET6 (either maximum value indicates the address is for a single host rather than a network)
      networkOrderAddress - the address bytes in network order. When the type is CIDR, only the leftmost networkPrefixBits bits are allowed to be nonzero. The array does not alias any internal storage and may be used as desired.