net.fortuna.ical4j.transform.compliance.VEventRule.class Maven / Gradle / Ivy
???? 7 ?
java/lang/Object ()V
)net/fortuna/ical4j/model/component/VEvent getDateTimeStart ()Ljava/util/Optional;
getDateTimeEnd
getDuration
java/util/Optional isPresent ()Z
get ()Ljava/lang/Object; 'net/fortuna/ical4j/model/property/DtEnd
! " getValue ()Ljava/lang/String; $ !net/fortuna/ical4j/model/Property
& ' ( remove Q(Lnet/fortuna/ical4j/model/Property;)Lnet/fortuna/ical4j/model/PropertyContainer; * )net/fortuna/ical4j/model/property/DtStart , "net/fortuna/ical4j/model/Parameter . VALUE
) 0 1 2 getParameter ((Ljava/lang/String;)Ljava/util/Optional;
0
+ 6 7 8 9 : (net/fortuna/ical4j/model/parameter/Value DATE *Lnet/fortuna/ical4j/model/parameter/Value;
6
= > ? @ A java/lang/String equals (Ljava/lang/Object;)Z
)
D E F getDate ()Ljava/time/temporal/Temporal;
H I J K L java/time/Period ofDays (I)Ljava/time/Period; N O P Q R java/time/temporal/Temporal plus B(Ljava/time/temporal/TemporalAmount;)Ljava/time/temporal/Temporal;
T U V setDate (Ljava/time/temporal/Temporal;)V
X Y getDateTimeStamp
[ \ isEmpty ^ _ ` a b :net/fortuna/ical4j/model/ChangeManagementPropertyModifiers DTSTAMP Ljava/util/function/BiFunction;
d e f g h java/time/Instant now ()Ljava/time/Instant;
j k l with _(Ljava/util/function/BiFunction;Ljava/lang/Object;)Lnet/fortuna/ical4j/model/PropertyContainer;
n o p q r 2net/fortuna/ical4j/transform/compliance/VEventRule apply X(Lnet/fortuna/ical4j/model/component/VEvent;)Lnet/fortuna/ical4j/model/component/VEvent; t