LongConverter converts a Long to an instant, partial or duration.
The Long value represents milliseconds in the ISO chronology.
author: Stephen Colebourne author: Brian S O'Neill since: 1.0
public long getDurationMillis(Object object)(Code)
Gets the millisecond duration, which is the Long value.
Parameters: object - the Long to convert, must not be null the millisecond duration throws: NullPointerException - if the object is null throws: ClassCastException - if the object is an invalid type
Gets the millisecond instant, which is the Long value.
Parameters: object - the Long to convert, must not be null Parameters: chrono - the chronology to use, which is always non-null the millisecond value throws: NullPointerException - if the object is null throws: ClassCastException - if the object is an invalid type