functionalj.lens.lenses.java.time.ZoneOffsetTransitionRuleAccess 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.zone.ZoneOffsetTransitionRule;
import java.util.function.Function;
import functionalj.lens.lenses.AnyAccess;
import functionalj.lens.lenses.BooleanAccessPrimitive;
import functionalj.lens.lenses.ConcreteAccess;
import functionalj.lens.lenses.IntegerAccessPrimitive;
import lombok.val;
public interface ZoneOffsetTransitionRuleAccess
extends AnyAccess
, ConcreteAccess > {
public static ZoneOffsetTransitionRuleAccess of(Function func) {
return func::apply;
}
public default ZoneOffsetTransitionRuleAccess newAccess(Function accessToValue) {
return ZoneOffsetTransitionRuleAccess.of(accessToValue);
}
public default MonthAccess getMonth() {
return host -> {
val value = apply(host);
return value.getMonth();
};
}
public default IntegerAccessPrimitive getDayOfMonthIndicator() {
return host -> {
val value = apply(host);
return value.getDayOfMonthIndicator();
};
}
public default DayOfWeekAccess getDayOfWeek() {
return host -> {
val value = apply(host);
return value.getDayOfWeek();
};
}
public default LocalTimeAccess getLocalTime() {
return host -> {
val value = apply(host);
return value.getLocalTime();
};
}
public default BooleanAccessPrimitive isMidnightEndOfDay() {
return host -> {
val value = apply(host);
return value.isMidnightEndOfDay();
};
}
public default TimeDefinitionAccess getTimeDefinition() {
return host -> {
val value = apply(host);
return value.getTimeDefinition();
};
}
public default ZoneOffsetAccess getStandardOffset() {
return host -> {
val value = apply(host);
return value.getStandardOffset();
};
}
public default ZoneOffsetAccess getOffsetBefore() {
return host -> {
val value = apply(host);
return value.getOffsetBefore();
};
}
public default ZoneOffsetAccess getOffsetAfter() {
return host -> {
val value = apply(host);
return value.getOffsetAfter();
};
}
public default ZoneOffsetTransitionAccess createTransition(int year) {
return host -> {
val value = apply(host);
return value.createTransition(year);
};
}
}