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

public Class ByMonthDayRule<T extends Temporal>

extends AbstractDateExpansionRule<T extends Temporal>
Class Inheritance
Imports
net.fortuna.ical4j.model.Recur, org.slf4j.Logger, .LoggerFactory, java.io.IOException, java.time.Month, .YearMonth, java.time.temporal.ChronoUnit, .Temporal, java.util.ArrayList, .EnumSet, .List, .Optional, java.util.function.Function

Applies BYMONTHDAY rules specified in this Recur instance to the specified date list. If no BYMONTHDAY rules are specified the date list is returned unmodified.

Note

For now BYMONTHDAY is not compatible with Instant temporal type. This is because this rule requires a year-month value which is not available from Instant temporal type.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class
private class

Field Summary

Modifier and TypeField and Description
private transient Logger
private final List<Integer>
private final Recur.Skip

Constructor Summary

AccessConstructor and Description
public
ByMonthDayRule(List<Integer> monthDayList, Frequency frequency)

public
ByMonthDayRule(List<Integer> monthDayList, 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.

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

Field Detail

logback to summary
private transient Logger log
monthDayListback to summary
private final List<Integer> monthDayList
skipback to summary
private final Recur.Skip skip

Constructor Detail

ByMonthDayRuleback to summary
public ByMonthDayRule(List<Integer> monthDayList, Frequency frequency)
ByMonthDayRuleback to summary
public ByMonthDayRule(List<Integer> monthDayList, 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
readObjectback to summary
private void readObject(final ObjectInputStream stream) throws IOException, ClassNotFoundException
net.fortuna.ical4j.transform.recurrence back to summary

private Class ByMonthDayRule.ExpansionFilter

extends Object
implements Function<T extends Temporal, List<T extends Temporal>>
Class Inheritance
  • java.lang.Object
  • net.fortuna.ical4j.transform.recurrence.ByMonthDayRule.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 ByMonthDayRule.LimitFilter

extends Object
implements Function<T extends Temporal, Optional<T extends Temporal>>
Class Inheritance
  • java.lang.Object
  • net.fortuna.ical4j.transform.recurrence.ByMonthDayRule.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