org.jopendocument.util
Class TimeUtils.DurationNullsChanger

java.lang.Object
  extended by 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

Field Summary
static TimeUtils.DurationNullsChanger ALL_TO_NULL
           
static TimeUtils.DurationNullsChanger NONE_TO_NULL
           
 
Method Summary
 Duration apply(Duration dur)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALL_TO_NULL

public static final TimeUtils.DurationNullsChanger ALL_TO_NULL

NONE_TO_NULL

public static final TimeUtils.DurationNullsChanger NONE_TO_NULL
Method Detail

apply

public final Duration apply(Duration dur)


Copyright © 2010 jOpenDocument All Rights Reserved.