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

public Class ByDayRule<T extends Temporal>

extends AbstractDateExpansionRule<T extends Temporal>
Class Inheritance
Imports
net.fortuna.ical4j.model.WeekDay, .WeekDayList, java.time.DayOfWeek, .Month, .Year, java.time.temporal.Temporal, .WeekFields, java.util.ArrayList, .Collections, .List, .Locale, java.util.function.Function, java.util.stream.Collectors

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

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class
private class
private class
private class

Field Summary

Modifier and TypeField and Description
private final List<WeekDay>
private final WeekFields

Constructor Summary

AccessConstructor and Description
public
ByDayRule(T seed, Frequency frequency)

public
ByDayRule(T seed, Frequency frequency, DayOfWeek firstDayOfWeek)

public
ByDayRule(List<WeekDay> dayList, Frequency frequency)

public
ByDayRule(List<WeekDay> dayList, Frequency frequency, DayOfWeek firstDayOfWeek)

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 List<T>
getOffsetDates(final List<T> dates, final int offset)

Returns a single-element sublist containing the element of list at offset.

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

Field Detail

dayListback to summary
private final List<WeekDay> dayList
weekFieldsback to summary
private final WeekFields weekFields

Constructor Detail

ByDayRuleback to summary
public ByDayRule(T seed, Frequency frequency)
ByDayRuleback to summary
public ByDayRule(T seed, Frequency frequency, DayOfWeek firstDayOfWeek)
ByDayRuleback to summary
public ByDayRule(List<WeekDay> dayList, Frequency frequency)
ByDayRuleback to summary
public ByDayRule(List<WeekDay> dayList, Frequency frequency, DayOfWeek firstDayOfWeek)

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
getOffsetDatesback to summary
private List<T> getOffsetDates(final List<T> dates, final int offset)

Returns a single-element sublist containing the element of list at offset. Valid offsets are from 1 to the size of the list. If an invalid offset is supplied, all elements from list are added to sublist.

net.fortuna.ical4j.transform.recurrence back to summary

private Class ByDayRule.LimitFilter

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

LimitFilterback to summary
private LimitFilter()

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 ByDayRule.MonthlyExpansionFilter

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

MonthlyExpansionFilterback to summary
private MonthlyExpansionFilter()

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 ByDayRule.WeeklyExpansionFilter

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

WeeklyExpansionFilterback to summary
private WeeklyExpansionFilter()

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 ByDayRule.YearlyExpansionFilter

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

YearlyExpansionFilterback to summary
private YearlyExpansionFilter()

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