public class RubyTimeOutputFormatter
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static RubyTimeOutputFormatter |
DEFAULT_FORMATTER |
(package private) java.lang.String |
flags |
(package private) int |
width |
| Constructor and Description |
|---|
RubyTimeOutputFormatter(java.lang.String flags,
int width) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
format(java.lang.String sequence,
long value,
RubyDateFormatter.FieldType type) |
(package private) static java.lang.String |
formatNumber(long value,
int width,
char padder) |
(package private) static java.lang.String |
formatSignedNumber(long value,
int width,
char padder) |
char |
getPadder(char defaultPadder) |
int |
getWidth(int defaultWidth) |
(package private) static java.lang.String |
padding(java.lang.String sequence,
int width,
char padder) |
final java.lang.String flags
final int width
public static final RubyTimeOutputFormatter DEFAULT_FORMATTER
public RubyTimeOutputFormatter(java.lang.String flags,
int width)
public int getWidth(int defaultWidth)
public char getPadder(char defaultPadder)
public java.lang.String format(java.lang.String sequence,
long value,
RubyDateFormatter.FieldType type)
static java.lang.String formatNumber(long value,
int width,
char padder)
static java.lang.String formatSignedNumber(long value,
int width,
char padder)
static java.lang.String padding(java.lang.String sequence,
int width,
char padder)