functionalj.lens.lenses.java.time.DayOfWeekLens Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of functionalj-core Show documentation
Show all versions of functionalj-core Show documentation
The module for FunctionalJ Core.
package functionalj.lens.lenses.java.time;
import java.time.DayOfWeek;
import functionalj.function.Func1;
import functionalj.lens.core.LensSpec;
import functionalj.lens.lenses.ObjectLensImpl;
public class DayOfWeekLens
extends ObjectLensImpl
implements DayOfWeekAccess {
public static final DayOfWeekLens theDayOfWeek = new DayOfWeekLens(LensSpec.of(DayOfWeek.class));
public static DayOfWeekLens of(LensSpec spec) {
return new DayOfWeekLens(spec);
}
public DayOfWeekLens(LensSpec spec) {
super(spec);
}
public final Func1 toSunday = changeTo(DayOfWeek.SUNDAY);
public final Func1 toMonday = changeTo(DayOfWeek.MONDAY);
public final Func1 toTuesday = changeTo(DayOfWeek.TUESDAY);
public final Func1 toWednesday = changeTo(DayOfWeek.WEDNESDAY);
public final Func1 toThursday = changeTo(DayOfWeek.THURSDAY);
public final Func1 toFriday = changeTo(DayOfWeek.FRIDAY);
public final Func1 toSaturday = changeTo(DayOfWeek.SATURDAY);
}