- 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.
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.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.postgresql.pljava.Adapter.Contract
Adapter.Contract.Array<T,
E, A extends Adapter<E, ?>>, Adapter.Contract.Scalar<T> -
Method Summary
Modifier and TypeMethodDescriptionconstruct
(StandardProtocolFamily addressFamily, int networkPrefixBits, byte[] networkOrderAddress) Constructs a representation T from the components of the PostgreSQL data type.
-
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 INET6networkPrefixBits
- 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.
-