Interface InetAddressMatcher

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 interface InetAddressMatcher
Matches an InetAddress.
Since:
7.1
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    matches(@Nullable String address)
    Whether the given address string matches.
    boolean
    matches(@Nullable InetAddress address)
    Whether the given address matches.
  • Method Details

    • matches

      boolean matches(@Nullable InetAddress address)
      Whether the given address matches.
      Parameters:
      address - the InetAddress to check (may be null)
      Returns:
      true if the address matches, false otherwise
    • matches

      default boolean matches(@Nullable String address)
      Whether the given address string matches.
      Parameters:
      address - the IP address string to check (may be null)
      Returns:
      true if the address matches, false otherwise