Top Description Inners Fields Constructors Methods
net.fortuna.ical4j.transform.recurrence

public Class ByMonthRule<T extends Temporal>

extends AbstractDateExpansionRule<T extends Temporal>
Class Inheritance
Imports
net.fortuna.ical4j.model.Month, .Recur, java.time.temporal.Temporal, java.util.ArrayList, .List, .Optional, java.util.function.Function

Applies BYMONTH rules specified in this Recur instance to the specified date list. If no BYMONTH rules are specified the date list is returned unmodified. Valid temporal types for this rule include: java.time.ZonedDateTime, java.time.LocalDateTime and java.time.LocalDate

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class
private class

Field Summary

Modifier and TypeField and Description
private final List<Month>
private final Recur.Skip

Constructor Summary

AccessConstructor and Description
public
ByMonthRule(List<Month> monthList, Frequency frequency)

public
ByMonthRule(List<Month> monthList, Frequency frequency, Recur.Skip skip)

Method Summary

Modifier and TypeMethod and Description
public List<T>
apply(List<T>
the function argument
dates
)

Implements java.util.function.Function.apply.

Applies this function to the given argument.

Inherited from net.fortuna.ical4j.transform.recurrence.AbstractDateExpansionRule:
getDayOfMonthgetDayOfWeekgetDayOfYeargetFrequencygetHourgetMinutegetMonthgetSecondgetYearwithTemporalField

Field Detail

monthListback to summary
private final List<Month> monthList
skipback to summary
private final Recur.Skip skip

Constructor Detail

ByMonthRuleback to summary
public ByMonthRule(List<Month> monthList, Frequency frequency)
ByMonthRuleback to summary
public ByMonthRule(List<Month> monthList, Frequency frequency, Recur.Skip skip)

Method Detail

applyback to summary
public List<T> apply(List<T> dates)

Implements java.util.function.Function.apply.

Doc from java.util.function.Function.apply.

Applies this function to the given argument.

Parameters
dates:List<T>

the function argument

Returns:List<T>

the function result

Annotations
@Override
net.fortuna.ical4j.transform.recurrence back to summary

private Class ByMonthRule.ExpansionFilter

extends Object
implements Function<T extends Temporal, List<T extends Temporal>>
Class Inheritance
  • java.lang.Object
  • net.fortuna.ical4j.transform.recurrence.ByMonthRule.ExpansionFilter
All Implemented Interfaces
java.util.function.Function

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public List<T>
apply(T
the function argument
date
)

Implements java.util.function.Function.apply.

Applies this function to the given argument.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ExpansionFilterback to summary
private ExpansionFilter()

Method Detail

applyback to summary
public List<T> apply(T date)

Implements java.util.function.Function.apply.

Doc from java.util.function.Function.apply.

Applies this function to the given argument.

Parameters
date:T

the function argument

Returns:List<T>

the function result

Annotations
@Override
net.fortuna.ical4j.transform.recurrence back to summary

private Class ByMonthRule.LimitFilter

extends Object
implements Function<T extends Temporal, Optional<T extends Temporal>>
Class Inheritance
  • java.lang.Object
  • net.fortuna.ical4j.transform.recurrence.ByMonthRule.LimitFilter
All Implemented Interfaces
java.util.function.Function

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Optional<T>
apply(T
the function argument
date
)

Implements java.util.function.Function.apply.

Applies this function to the given argument.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

LimitFilterback to summary
private LimitFilter()

Method Detail

applyback to summary
public Optional<T> apply(T date)

Implements java.util.function.Function.apply.

Doc from java.util.function.Function.apply.

Applies this function to the given argument.

Parameters
date:T

the function argument

Returns:Optional<T>

the function result

Annotations
@Override