Package org.dellroad.stuff.text
Class MessageFmt.StandardDateFormatArgumentSegment
java.lang.Object
org.dellroad.stuff.text.MessageFmt.Segment
org.dellroad.stuff.text.MessageFmt.ArgumentSegment
org.dellroad.stuff.text.MessageFmt.FormatArgumentSegment<DateFormat>
org.dellroad.stuff.text.MessageFmt.DateFormatArgumentSegment<DateFormat>
org.dellroad.stuff.text.MessageFmt.StandardDateFormatArgumentSegment
- Enclosing class:
- MessageFmt
public static class MessageFmt.StandardDateFormatArgumentSegment
extends MessageFmt.DateFormatArgumentSegment<DateFormat>
An
MessageFmt.ArgumentSegment that formats its argument using one of the standard DateFormat
date instances for the locale.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionStandardDateFormatArgumentSegment(int argumentNumber, MessageFmt.DateFormatStandard standard) -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected StringGet theMessageFormatpattern string argument suffix, if any.protected String@NotNull MessageFmt.DateFormatStandardinthashCode()voidsetStandard(MessageFmt.DateFormatStandard standard) voidvisit(MessageFmt.SegmentSwitch target) Visit the method of the given switch corresponding to this instance's concrete type.Methods inherited from class org.dellroad.stuff.text.MessageFmt.FormatArgumentSegment
ofMethods inherited from class org.dellroad.stuff.text.MessageFmt.ArgumentSegment
getArgumentNumber, setArgumentNumber, toPattern, toString
-
Constructor Details
-
StandardDateFormatArgumentSegment
public StandardDateFormatArgumentSegment() -
StandardDateFormatArgumentSegment
public StandardDateFormatArgumentSegment(int argumentNumber, MessageFmt.DateFormatStandard standard)
-
-
Method Details
-
getKeyword
-
visit
Description copied from class:MessageFmt.SegmentVisit the method of the given switch corresponding to this instance's concrete type.- Specified by:
visitin classMessageFmt.Segment- Parameters:
target- visitor pattern target
-
getStandard
-
setStandard
-
getArgumentSuffix
Description copied from class:MessageFmt.ArgumentSegmentGet theMessageFormatpattern string argument suffix, if any.If present, this suffix follows the argument number and a comma, and precedes the closing curly brace.
- Specified by:
getArgumentSuffixin classMessageFmt.ArgumentSegment- Returns:
- pattern string argument suffix, or null if none needed
-
equals
- Overrides:
equalsin classMessageFmt.ArgumentSegment
-
hashCode
public int hashCode()- Overrides:
hashCodein classMessageFmt.ArgumentSegment
-