| 43 | * @since 2.0 |
| 44 | */ |
| 45 | public interface ZonalElement<V> |
| 46 | extends ChronoElement<V> { |
| 47 | |
| 48 | //~ Methoden ---------------------------------------------------------- |
| 49 | |
| 50 | /** |
| 51 | * <p>Creates a function which can query a {@link Moment} in the |
| 52 | * system timezone. </p> |
| 53 | * |
| 54 | * <p>Note: Usually the function converts the given {@code Moment} to |
| 55 | * a {@code PlainTimestamp} and then queries this local timestamp. </p> |
| 56 | * |
| 57 | * @return function with the default system timezone reference, |
| 58 | * applicable on instances of {@code Moment} |
| 59 | * @since 2.0 |
| 60 | */ |
| 61 | /*[deutsch] |
| 62 | * <p>Erzeugt eine Funktion, die einen {@link Moment} mit |
| 63 | * Hilfe der Systemzeitzonenreferenz abfragen kann. </p> |
| 64 | * |
| 65 | * <p>Hinweis: Die Funktion wandelt meist den gegebenen {@code Moment} |
| 66 | * in einen lokalen Zeitstempel um und fragt dann diesen ab. </p> |
| 67 | * |
| 68 | * @return function with the default system timezone reference, |
| 69 | * applicable on instances of {@code Moment} |
| 70 | * @since 2.0 |
| 71 | */ |
| 72 | ChronoFunction<Moment, V> inStdTimezone(); |
| 73 | |
| 74 | /** |
| 75 | * <p>Creates a function which can query a {@link Moment} in the |
| 76 | * given timezone. </p> |
| 77 | * |
| 78 | * <p>Note: Usually the function converts the given {@code Moment} to |
| 79 | * a {@code PlainTimestamp} and then queries this zonal timestamp. </p> |
| 80 | * |
| 81 | * @param tzid timezone id |
| 82 | * @return function applicable on instances of {@code Moment} |
| 83 | * @since 2.0 |
| 84 | * @throws IllegalArgumentException if given timezone cannot be loaded |
| 85 | */ |
| 86 | /*[deutsch] |
| 87 | * <p>Erzeugt eine Funktion, die einen {@link Moment} mit |
| 88 | * Hilfe einer Zeitzonenreferenz abfragen kann. </p> |
| 89 | * |
| 90 | * <p>Hinweis: Die Funktion wandelt meist den gegebenen {@code Moment} |
| 91 | * in einen zonalen Zeitstempel um und fragt dann diesen ab. </p> |
| 92 | * |
| 93 | * @param tzid timezone id |
| 94 | * @return function applicable on instances of {@code Moment} |
| 95 | * @since 2.0 |
| 96 | * @throws IllegalArgumentException if given timezone cannot be loaded |
| 97 | */ |
| 98 | ChronoFunction<Moment, V> inTimezone(TZID tzid); |
| 99 | |
| 100 | /** |
| 101 | * <p>Creates a function which can query a {@link Moment} in the |
| 102 | * given timezone. </p> |
no outgoing calls
no test coverage detected