public class DefaultNDurationFormat2 extends Object
| Constructor and Description |
|---|
DefaultNDurationFormat2(net.thevpc.nuts.time.NDurationFormatMode mode) |
DefaultNDurationFormat2(String pattern) |
| Modifier and Type | Method and Description |
|---|---|
net.thevpc.nuts.text.NText |
format(Duration duration) |
net.thevpc.nuts.text.NText |
format(long millis,
int nanos) |
net.thevpc.nuts.text.NText |
format(net.thevpc.nuts.time.NDuration duration) |
net.thevpc.nuts.text.NText |
format(net.thevpc.nuts.time.NDuration duration,
net.thevpc.nuts.text.NTexts texts) |
net.thevpc.nuts.text.NText |
formatMillis(long millis) |
net.thevpc.nuts.text.NText |
formatNanos(long nanos) |
void |
formatUnit(net.thevpc.nuts.time.NDuration duration,
ChronoUnit unit,
Set<ChronoUnit> processed,
net.thevpc.nuts.text.NTextBuilder out) |
net.thevpc.nuts.time.NDurationFormatMode |
getMode() |
void |
print(net.thevpc.nuts.time.NDuration duration,
net.thevpc.nuts.text.NTextBuilder out) |
String |
unitString(ChronoUnit unit) |
public DefaultNDurationFormat2(net.thevpc.nuts.time.NDurationFormatMode mode)
public DefaultNDurationFormat2(String pattern)
public net.thevpc.nuts.text.NText formatMillis(long millis)
public net.thevpc.nuts.text.NText formatNanos(long nanos)
public net.thevpc.nuts.text.NText format(long millis,
int nanos)
public net.thevpc.nuts.text.NText format(Duration duration)
public void formatUnit(net.thevpc.nuts.time.NDuration duration,
ChronoUnit unit,
Set<ChronoUnit> processed,
net.thevpc.nuts.text.NTextBuilder out)
public net.thevpc.nuts.text.NText format(net.thevpc.nuts.time.NDuration duration)
public net.thevpc.nuts.text.NText format(net.thevpc.nuts.time.NDuration duration,
net.thevpc.nuts.text.NTexts texts)
public void print(net.thevpc.nuts.time.NDuration duration,
net.thevpc.nuts.text.NTextBuilder out)
public net.thevpc.nuts.time.NDurationFormatMode getMode()
public String unitString(ChronoUnit unit)
Copyright © 2025 vpc open source initiative. All rights reserved.