Package net.fortuna.ical4j.filter
Class ComponentFilter<T extends Component>
java.lang.Object
net.fortuna.ical4j.filter.AbstractFilter<T>
net.fortuna.ical4j.filter.ComponentFilter<T>
- All Implemented Interfaces:
PredicateFactory<T>
ComponentFilter produces predicates for lambda-style filtering of
iCalendar components.
The following example prints all events where the event's categories contain the the word "Holiday".
Predicatefilter = new ComponentFilter().predicate(FilterExpression.contains(Property.CATEGORIES, "Holiday")); calendar.getComponents(Component.VEVENT).stream() .filter(filter) .forEach(System.out::println);
-
Constructor Summary
ConstructorsConstructorDescriptionComponentFilter(Supplier<List<PropertyFactory<?>>> propertyFactorySupplier, Supplier<List<ParameterFactory<?>>> parameterFactorySupplier) -
Method Summary
Modifier and TypeMethodDescriptionpredicate(BinaryExpression expression) predicate(UnaryExpression expression) Methods inherited from class net.fortuna.ical4j.filter.AbstractFilter
literal, parameter, parameter, parameter, parameter, parameters, properties, property, property, property, property, property, targetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.fortuna.ical4j.filter.PredicateFactory
predicate
-
Constructor Details
-
ComponentFilter
public ComponentFilter() -
ComponentFilter
public ComponentFilter(Supplier<List<PropertyFactory<?>>> propertyFactorySupplier, Supplier<List<ParameterFactory<?>>> parameterFactorySupplier)
-
-
Method Details
-
predicate
-
predicate
-