All Downloads are FREE. Search and download functionalities are using the official Maven repository.

functionalj.lens.lenses.java.time.ZoneOffsetTransitionRuleAccess Maven / Gradle / Ivy

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.BooleanAccess;
import functionalj.lens.lenses.ConcreteAccess;
import functionalj.lens.lenses.IntegerAccess;
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 IntegerAccess 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 BooleanAccess 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);
        };
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy