Top Description Fields Constructors Methods
net.fortuna.ical4j.filter.predicate

public Class PeriodRule<C extends Component, T extends Temporal>

extends Object
implements Predicate<C extends Component>
Class Inheritance
All Implemented Interfaces
java.util.function.Predicate
Imports
net.fortuna.ical4j.model.Component, .Period, java.time.temporal.Temporal, java.util.Set, java.util.function.Predicate

$Id$ Created on 2/02/2006 A rule that matches any component that occurs in the specified time period.
Author
Ben Fortuna

Field Summary

Modifier and TypeField and Description
private final Period<T>

Constructor Summary

AccessConstructor and Description
public
PeriodRule(final Period<T>
a period instance to match on
period
)

Constructs a new instance using the specified period.

Method Summary

Modifier and TypeMethod and Description
public final boolean
test(final Component
the input argument
component
)

Implements java.util.function.Predicate.test.

Evaluates this predicate on the given argument.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

periodback to summary
private final Period<T> period

Constructor Detail

PeriodRuleback to summary
public PeriodRule(final Period<T> period)

Constructs a new instance using the specified period.

Parameters
period:Period<T>

a period instance to match on

Method Detail

testback to summary
public final boolean test(final Component component)

Implements java.util.function.Predicate.test.

Doc from java.util.function.Predicate.test.

Evaluates this predicate on the given argument.

Parameters
component:Component

the input argument

Returns:boolean

true if the input argument matches the predicate, otherwise false

Annotations
@Override