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

public Class BySetPosRule<T extends Temporal>

extends Object
implements Transformer<List<T extends Temporal>>
Class Inheritance
All Implemented Interfaces
net.fortuna.ical4j.transform.Transformer, java.util.function.UnaryOperator, java.util.function.Function
Imports
net.fortuna.ical4j.model.TemporalComparator, net.fortuna.ical4j.transform.Transformer, java.time.temporal.Temporal, java.util.ArrayList, .Comparator, .List

Applies BYSETPOS rules to dates. Valid positions are from 1 to the size of the date list. Invalid positions are ignored.

Field Summary

Modifier and TypeField and Description
private static final Comparator<Temporal>
private final List<Integer>

Constructor Summary

AccessConstructor and Description
public
BySetPosRule(List<Integer> setPosList)

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 java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ONSET_COMPARATORback to summary
private static final Comparator<Temporal> ONSET_COMPARATOR
setPosListback to summary
private final List<Integer> setPosList

Constructor Detail

BySetPosRuleback to summary
public BySetPosRule(List<Integer> setPosList)

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