java.lang.Object
org.jooq.postgres.extensions.types.AbstractInet
org.jooq.postgres.extensions.types.Inet
All Implemented Interfaces:
Serializable

public final class Inet extends AbstractInet
A data type representing the PostgreSQL inet type.
Author:
Lukas Eder
See Also:
  • Method Details

    • prefix

      @Nullable public final @Nullable Integer prefix()
      Overrides:
      prefix in class AbstractInet
    • valueOf

      @NotNull public static final @NotNull Inet valueOf(InetAddress address)
      Create a new Inet instance.
    • valueOf

      @NotNull public static final @NotNull Inet valueOf(InetAddress address, Integer prefix)
      Create a new Inet instance.
    • inet

      @NotNull public static final @NotNull Inet inet(InetAddress address)
      Create a new Inet instance.

      This is the same as valueOf(InetAddress), but it can be static imported.

    • inet

      @NotNull public static final @NotNull Inet inet(InetAddress address, Integer prefix)
      Create a new Inet instance.

      This is the same as valueOf(InetAddress, Integer), but it can be static imported.

    • inetOrNull

      @Nullable public static final @Nullable Inet inetOrNull(InetAddress address)
      Create a new Inet instance, or null if the input address is null.
    • inetOrNull

      @Nullable public static final @Nullable Inet inetOrNull(InetAddress address, Integer prefix)
      Create a new Inet instance, or null if the input address is null.