Package org.joda.time.format
Class PeriodFormatterBuilder.CompositeAffix
java.lang.Object
org.joda.time.format.PeriodFormatterBuilder.IgnorableAffix
org.joda.time.format.PeriodFormatterBuilder.CompositeAffix
- All Implemented Interfaces:
PeriodFormatterBuilder.PeriodFieldAffix
- Enclosing class:
PeriodFormatterBuilder
Builds a composite affix by merging two other affix implementations.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PeriodFormatterBuilder.PeriodFieldAffixprivate final String[]private final PeriodFormatterBuilder.PeriodFieldAffix -
Constructor Summary
ConstructorsConstructorDescriptionCompositeAffix(PeriodFormatterBuilder.PeriodFieldAffix left, PeriodFormatterBuilder.PeriodFieldAffix right) -
Method Summary
Modifier and TypeMethodDescriptionintcalculatePrintedLength(int value) String[]intvoidvoidprintTo(StringBuffer buf, int value) intMethods inherited from class org.joda.time.format.PeriodFormatterBuilder.IgnorableAffix
finish, matchesOtherAffix
-
Field Details
-
iLeft
-
iRight
-
iLeftRightCombinations
-
-
Constructor Details
-
CompositeAffix
CompositeAffix(PeriodFormatterBuilder.PeriodFieldAffix left, PeriodFormatterBuilder.PeriodFieldAffix right)
-
-
Method Details
-
calculatePrintedLength
public int calculatePrintedLength(int value) -
printTo
-
printTo
- Throws:
IOException
-
parse
- Parameters:
periodStr- the periodposition- the position- Returns:
- new position after parsing affix, or ~position of failure
-
scan
- Parameters:
periodStr- the periodposition- the position- Returns:
- position where affix starts, or original ~position if not found
-
getAffixes
- Returns:
- a copy of array of affixes
-