Package com.logviewer.formats.utils
Class FastDateTimeParser
java.lang.Object
com.logviewer.formats.utils.FastDateTimeParser
- All Implemented Interfaces:
BiFunction<String,ParsePosition, Supplier<Instant>>
public class FastDateTimeParser
extends Object
implements BiFunction<String,ParsePosition,Supplier<Instant>>
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionapply(String s, ParsePosition pos) static BiFunction<String,ParsePosition, Supplier<Instant>> createFormatter(String pattern, Locale locale, TimeZone defaultTimeZone) static TimeZoneparseTimezone(String s, ParsePosition pos) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.function.BiFunction
andThen
-
Field Details
-
ALL_ZONES
-
-
Method Details
-
apply
- Specified by:
applyin interfaceBiFunction<String,ParsePosition, Supplier<Instant>>
-
parseTimezone
-
createFormatter
public static BiFunction<String,ParsePosition, createFormatterSupplier<Instant>> (@NonNull String pattern, @Nullable Locale locale, @Nullable TimeZone defaultTimeZone) throws IllegalArgumentException - Throws:
IllegalArgumentException
-