Interface ManageableResourceSelector<R extends ManageableResource>
-
- Type Parameters:
R- the type ofManageableResources returned by the selector
- 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 ManageableResourceSelector<R extends ManageableResource>
Represents a function that selectsManageableResources resource(s). Code adapted fromFunction.- Author:
- emmartins
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default <R1 extends ManageableResource>
ManageableResourceSelector<R1>andThen(ManageableResourceSelector<R1> after)Returns a composed selector that first applies this selector to its input, and then applies theafterselector to the result.default ManageableResourceSelector<R>compose(ManageableResourceSelector<?> before)Returns a composed selector that first applies thebeforeselector to its input, and then applies this selector to the result.default <I extends ManageableResource>
Set<R>fromResources(I... resources)default <I extends ManageableResource>
Set<R>fromResources(Collection<I> resources)Set<R>fromResources(ManageableResource resource)
-
-
-
Method Detail
-
fromResources
Set<R> fromResources(ManageableResource resource) throws ManagementOperationException
- Throws:
ManagementOperationException
-
fromResources
default <I extends ManageableResource> Set<R> fromResources(I... resources) throws ManagementOperationException
- Throws:
ManagementOperationException
-
fromResources
default <I extends ManageableResource> Set<R> fromResources(Collection<I> resources) throws ManagementOperationException
- Throws:
ManagementOperationException
-
compose
default ManageableResourceSelector<R> compose(ManageableResourceSelector<?> before)
Returns a composed selector that first applies thebeforeselector to its input, and then applies this selector to the result.- Parameters:
before- the selector to apply before this selector is applied- Returns:
- a composed selector that first applies the
beforeselector, and then applies this selector - Throws:
NullPointerException- if before is null- See Also:
andThen(ManageableResourceSelector)
-
andThen
default <R1 extends ManageableResource> ManageableResourceSelector<R1> andThen(ManageableResourceSelector<R1> after)
Returns a composed selector that first applies this selector to its input, and then applies theafterselector to the result.- Type Parameters:
R1- the type of output of theafterfunction, and of the composed function- Parameters:
after- the selector to apply the result from this selector- Returns:
- a composed selector that first applies this selector and then
applies the
afterselector - Throws:
NullPointerException- if after is null- See Also:
compose(ManageableResourceSelector)
-
-