APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.webkit.network

pack-priv final Class ExtendedTime

extends Object
implements Comparable<ExtendedTime>
Class Inheritance
All Implemented Interfaces
java.lang.Comparable

An extended time consisting of a long "base time" and an integer "subtime".

Field Summary

Modifier and TypeField and Description
private final long
private final int

Constructor Summary

AccessConstructor and Description
pack-priv
ExtendedTime(long baseTime, int subtime)

Creates a new ExtendedTime.

Method Summary

Modifier and TypeMethod and Description
pack-priv long
baseTime()

Returns the base time.

public int
compareTo(ExtendedTime otherExtendedTime)

Implements java.lang.Comparable.compareTo.

Compares this object with the specified object for order.

pack-priv static ExtendedTime
currentTime()

Returns the current extended time with the base time initialized to System.currentTimeMillis() and the subtime initialized to zero.

pack-priv ExtendedTime
incrementSubtime()

Increments the subtime and returns the result as a new extended time.

pack-priv int
subtime()

Returns the subtime.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

baseTimeback to summary
private final long baseTime
subtimeback to summary
private final int subtime

Constructor Detail

ExtendedTimeback to summary
pack-priv ExtendedTime(long baseTime, int subtime)

Creates a new ExtendedTime.

Method Detail

baseTimeback to summary
pack-priv long baseTime()

Returns the base time.

compareToback to summary
public int compareTo(ExtendedTime otherExtendedTime)

Implements java.lang.Comparable.compareTo.

Doc from java.lang.Comparable.compareTo.

Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

The implementor must ensure signum(x.compareTo(y)) == -signum(y.compareTo(x)) for all x and y. (This implies that x.compareTo(y) must throw an exception if and only if y.compareTo(x) throws an exception.)

The implementor must also ensure that the relation is transitive: (x.compareTo(y) > 0 && y.compareTo(z) > 0) implies x.compareTo(z) > 0.

Finally, the implementor must ensure that x.compareTo(y)==0 implies that signum(x.compareTo(z)) == signum(y.compareTo(z)), for all z.

Annotations
@Override
currentTimeback to summary
pack-priv static ExtendedTime currentTime()

Returns the current extended time with the base time initialized to System.currentTimeMillis() and the subtime initialized to zero.

incrementSubtimeback to summary
pack-priv ExtendedTime incrementSubtime()

Increments the subtime and returns the result as a new extended time.

subtimeback to summary
pack-priv int subtime()

Returns the subtime.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override