Package com.helger.commons.datetime
Class DateTimeFormatterPattern
java.lang.Object
com.helger.commons.datetime.DateTimeFormatterPattern
@ThreadSafe
@DevelopersNote("The mutable m_nHashCode does not contradict thread safety")
public final class DateTimeFormatterPattern
extends Object
This class encapsulates a String pattern and a set of options to be used in
parsing.
- Author:
- Philip Helger
-
Constructor Details
-
DateTimeFormatterPattern
public DateTimeFormatterPattern(@Nonnull @Nonempty String sPattern, @Nonnull ResolverStyle eResolverStyle)
-
-
Method Details
-
getPattern
- Returns:
- The source pattern string. Neither
nullnor empty.
-
getResolverStyle
- Returns:
- The resolver style as passed in the constructor. Never
null.
-
getAsFormatter
- Returns:
- The precompiled formatter. Never
null.
-
equals
-
hashCode
public int hashCode() -
toString
-