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.
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanWhether the given address string matches.booleanmatches(@Nullable InetAddress address) Whether the given address matches.
-
Method Details
-
matches
Whether the given address matches.- Parameters:
address- theInetAddressto check (may benull)- Returns:
trueif the address matches,falseotherwise
-
matches
Whether the given address string matches.- Parameters:
address- the IP address string to check (may benull)- Returns:
trueif the address matches,falseotherwise
-