Package net.shibboleth.metadata.pipeline
Record Class PipelineAndStrategy<T>
java.lang.Object
java.lang.Record
net.shibboleth.metadata.pipeline.PipelineAndStrategy<T>
- Type Parameters:
T- type of items processed by the pipeline- Record Components:
pipeline- aPipelineto which items will be sentstrategy- aPredicateused to determine which items will be sent to the pipeline
public record PipelineAndStrategy<T>(@Nonnull Pipeline<T> pipeline, @Nonnull Predicate<Item<T>> strategy)
extends Record
Representation of a
Pipeline and the Predicate to be used as a strategy to select
items sent to that pipeline.- Since:
- 0.10.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.pipeline()Returns the value of thepipelinerecord component.strategy()Returns the value of thestrategyrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
pipeline
Returns the value of thepipelinerecord component.- Returns:
- the value of the
pipelinerecord component
-
strategy
Returns the value of thestrategyrecord component.- Returns:
- the value of the
strategyrecord component
-