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

net.time4j.tz.OverlapResolver Maven / Gradle / Ivy

There is a newer version: 4.38
Show newest version
/*
 * -----------------------------------------------------------------------
 * Copyright © 2013-2015 Meno Hochschild, 
 * -----------------------------------------------------------------------
 * This file (OverlapResolver.java) is part of project Time4J.
 *
 * Time4J is free software: You can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as published
 * by the Free Software Foundation, either version 2.1 of the License, or
 * (at your option) any later version.
 *
 * Time4J is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with Time4J. If not, see .
 * -----------------------------------------------------------------------
 */

package net.time4j.tz;


/**
 * 

Represents the component of a transition strategy how to handle overlaps * on the local timeline.

* * @author Meno Hochschild * @since 2.2 * @see GapResolver * @see TransitionStrategy */ /*[deutsch] *

Repräsentiert die Komponente einer Übergangsstrategie, wie * Überlappungen auf dem lokalen Zeitstrahl behandelt werden.

* * @author Meno Hochschild * @since 2.2 * @see GapResolver * @see TransitionStrategy */ public enum OverlapResolver { //~ Statische Felder/Initialisierungen -------------------------------- /** *

Strategy which selects the earlier offset before a transition * where the local time is ambivalent due to an overlap on the local * timeline.

*/ /*[deutsch] *

Strategie, die den früheren Offset vor einem Übergang * wählt, wenn eine lokale Zeit wegen einer Überlappung auf dem * lokalen Zeitstrahl nicht eindeutig ist.

*/ EARLIER_OFFSET, /** *

Default strategy which selects the later offset after a transition * where the local time is ambivalent due to an overlap on the local * timeline.

*/ /*[deutsch] *

Standardstrategie, die den späteren Offset nach einem * Übergang wählt, wenn eine lokale Zeit wegen einer * Überlappung auf dem lokalen Zeitstrahl nicht eindeutig ist.

*/ LATER_OFFSET; //~ Methoden ---------------------------------------------------------- /** *

Yields a transition strategy as combination of given gap resolver * and this instance.

* * @param gapResolver strategy how to handle gaps on the local timeline * @return transition strategy for handling gaps and overlaps * @since 2.2 * @see GapResolver#and(OverlapResolver) */ /*[deutsch] *

Liefert eine Übergangsstrategie als Kombination der angegebenen * Lückenstrategie und dieser Instanz.

* * @param gapResolver strategy how to handle gaps on the local timeline * @return transition strategy for handling gaps and overlaps * @since 2.2 * @see GapResolver#and(OverlapResolver) */ public TransitionStrategy and(GapResolver gapResolver) { return gapResolver.and(this); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy