public class NumberTime extends Number implements Serializable
Copyright (c) 2016-2017 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See Sim0MQ License.
Constructor and Description |
---|
NumberTime(org.djunits.value.vfloat.scalar.FloatTime time)
Create a duration from a FloatScalar FloatTime type.
|
NumberTime(Number time)
Create a duration from a Number.
|
NumberTime(org.djunits.value.vdouble.scalar.Time time)
Create a duration from a DoubleScalar Time type.
|
Modifier and Type | Method and Description |
---|---|
double |
doubleValue() |
float |
floatValue() |
org.djunits.value.vfloat.scalar.FloatTime |
getFloatTime() |
org.djunits.value.vdouble.scalar.Time |
getTime() |
int |
intValue() |
long |
longValue() |
byteValue, shortValue
public NumberTime(Number time)
time
- the duration as a Number.public NumberTime(org.djunits.value.vdouble.scalar.Time time)
time
- the duration as a DoubleScalar Time.public NumberTime(org.djunits.value.vfloat.scalar.FloatTime time)
time
- the duration as a FloatScalar FloatTime.public float floatValue()
floatValue
in class Number
public double doubleValue()
doubleValue
in class Number
public org.djunits.value.vdouble.scalar.Time getTime()
public org.djunits.value.vfloat.scalar.FloatTime getFloatTime()
Copyright © 2016–2018 Delft University of Technology. All rights reserved.