< prev index next >

modules/javafx.base/src/main/java/javafx/util/Duration.java

Print this page




  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package javafx.util;
  27 
  28 import java.io.Serializable;
  29 import javafx.beans.NamedArg;
  30 
  31 /**
  32  * <p>
  33  *     A class that defines a duration of time. Duration instances are immutable,
  34  *     and are therefore replaced rather than modified, similar to {@link java.math.BigDecimal}.
  35  *     Duration's can be created using the constructor, or one of the static construction
  36  *     methods such as {@link #seconds} or {@link #minutes}.
  37  * </p>
  38  * @since JavaFX 2.0
  39  */
  40 public class Duration implements Comparable<Duration>, Serializable {
  41     /**
  42      * A Duration of 0 (no time).
  43      */
  44     public static final Duration ZERO = new Duration(0);
  45 
  46     /**
  47      * A Duration of 1 millisecond.
  48      */
  49     public static final Duration ONE = new Duration(1);
  50 
  51     /**
  52      * An Infinite Duration.
  53      */
  54     public static final Duration INDEFINITE = new Duration(Double.POSITIVE_INFINITY);
  55 




  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package javafx.util;
  27 
  28 import java.io.Serializable;
  29 import javafx.beans.NamedArg;
  30 
  31 /**
  32  * <p>
  33  *     A class that defines a duration of time. Duration instances are immutable,
  34  *     and are therefore replaced rather than modified, similar to {@link java.math.BigDecimal}.
  35  *     Durations can be created using the constructor, or one of the static construction
  36  *     methods such as {@link #seconds} or {@link #minutes}.
  37  * </p>
  38  * @since JavaFX 2.0
  39  */
  40 public class Duration implements Comparable<Duration>, Serializable {
  41     /**
  42      * A Duration of 0 (no time).
  43      */
  44     public static final Duration ZERO = new Duration(0);
  45 
  46     /**
  47      * A Duration of 1 millisecond.
  48      */
  49     public static final Duration ONE = new Duration(1);
  50 
  51     /**
  52      * An Infinite Duration.
  53      */
  54     public static final Duration INDEFINITE = new Duration(Double.POSITIVE_INFINITY);
  55 


< prev index next >