org.jopendocument.util
Class TimeUtils.DurationNullsChanger
java.lang.Object
org.jopendocument.util.TimeUtils.DurationNullsChanger
- Enclosing class:
- TimeUtils
@Immutable
public static final class TimeUtils.DurationNullsChanger
- extends Object
Allow to change empty fields between two equivalent state. In a Duration an empty
field can be set to null and it won't be output or it can be set to 0 and it
will be explicitly output.
- Author:
- Sylvain
- See Also:
TimeUtils.DurationNullsBuilder
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ALL_TO_NULL
public static final TimeUtils.DurationNullsChanger ALL_TO_NULL
NONE_TO_NULL
public static final TimeUtils.DurationNullsChanger NONE_TO_NULL
apply
public final Duration apply(Duration dur)
Copyright © 2010 jOpenDocument All Rights Reserved.