Interface AccessPredicate.SocketPredicate
- All Superinterfaces:
Predicate<SocketAddress>
- Enclosing interface:
- AccessPredicate
Some helper methods used to create
Predicate
s for SocketAddress
es.-
Method Summary
Static MethodsModifier and TypeMethodDescriptioninet()
Checks that the given socket address is aInetSocketAddress
.Checks that the given socket address is anInProcessSocketAddress
.Checks that the given socket address is anInProcessSocketAddress
with the given name.type
(Class<? extends SocketAddress> type) Checks the type of the socket address.static <T> AccessPredicate.SocketPredicate
Checks the type of the socket address and the given condition.
-
Method Details
-
type
Checks the type of the socket address.- Parameters:
type
- The expected class of the socket address.- Returns:
- The newly created socket predicate.
-
typeAnd
Checks the type of the socket address and the given condition.- Type Parameters:
T
- The expected type of the socket address.- Parameters:
type
- The expected class of the socket address.condition
- The additional condition the socket has to pass.- Returns:
- The newly created socket predicate.
-
inProcess
Checks that the given socket address is anInProcessSocketAddress
.- Returns:
- The newly created socket predicate.
-
inProcess
Checks that the given socket address is anInProcessSocketAddress
with the given name.- Parameters:
name
- The name of in process connection.- Returns:
- The newly created socket predicate.
-
inet
Checks that the given socket address is aInetSocketAddress
.- Returns:
- The newly created socket predicate.
-