|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.runtime.type.dt.TimeSpanImpl
public final class TimeSpanImpl
TimeSpan Object, represent a timespan
Constructor Summary | |
---|---|
TimeSpanImpl(int day,
int hour,
int minute,
int second)
constructor of the timespan class |
|
TimeSpanImpl(int day,
int hour,
int minute,
int second,
int millisecond)
constructor of the timespan class |
Method Summary | |
---|---|
Boolean |
castToBoolean(Boolean defaultValue)
cast the castable value to a boolean value |
boolean |
castToBooleanValue()
cast the castable value to a boolean value |
DateTime |
castToDateTime()
cast the castable value to a date time object |
DateTime |
castToDateTime(DateTime defaultValue)
cast the castable value to a date time object |
double |
castToDoubleValue()
cast the castable value to a double value |
double |
castToDoubleValue(double defaultValue)
cast the castable value to a double value |
String |
castToString()
cast the castable value to a string, other than the Method toString, this Method can throw a Exception |
String |
castToString(String defaultValue)
cast the castable value to a string, return the default value, when the method is not castable |
int |
compareTo(boolean b)
|
int |
compareTo(DateTime dt)
|
int |
compareTo(double d)
|
int |
compareTo(String str)
|
static TimeSpan |
fromDays(double value)
|
static TimeSpan |
fromMillis(long value)
|
int |
getDay()
|
int |
getHour()
|
long |
getMilli()
|
long |
getMillis()
|
int |
getMinute()
|
int |
getSecond()
|
long |
getSeconds()
|
DumpData |
toDumpData(PageContext pageContext,
int maxlevel,
DumpProperties dp)
method to print out information to a object as HTML |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TimeSpanImpl(int day, int hour, int minute, int second)
day
- hour
- minute
- second
- public TimeSpanImpl(int day, int hour, int minute, int second, int millisecond)
day
- hour
- minute
- second
- Method Detail |
---|
public static TimeSpan fromDays(double value)
public static TimeSpan fromMillis(long value)
public String castToString()
Castable
castToString
in interface Castable
Castable.castToString()
public String castToString(String defaultValue)
Castable
castToString
in interface Castable
Castable.castToString(java.lang.String)
public boolean castToBooleanValue() throws ExpressionException
Castable
castToBooleanValue
in interface Castable
ExpressionException
Castable.castToBooleanValue()
public Boolean castToBoolean(Boolean defaultValue)
Castable
castToBoolean
in interface Castable
Castable.castToBoolean(java.lang.Boolean)
public double castToDoubleValue()
Castable
castToDoubleValue
in interface Castable
Castable.castToDoubleValue()
public double castToDoubleValue(double defaultValue)
Castable
castToDoubleValue
in interface Castable
Castable.castToDoubleValue(double)
public DateTime castToDateTime() throws ExpressionException
Castable
castToDateTime
in interface Castable
ExpressionException
Castable.castToDateTime()
public DateTime castToDateTime(DateTime defaultValue)
Castable
castToDateTime
in interface Castable
defaultValue
- returned when it is not possible to cast to a dateTime object
Castable.castToDateTime(railo.runtime.type.dt.DateTime)
public int compareTo(boolean b)
compareTo
in interface Castable
railo.runtime.op.Castable#compare(boolean)
public int compareTo(DateTime dt) throws PageException
compareTo
in interface Castable
PageException
Castable.compareTo(railo.runtime.type.dt.DateTime)
public int compareTo(double d) throws PageException
compareTo
in interface Castable
PageException
Castable.compareTo(double)
public int compareTo(String str) throws PageException
compareTo
in interface Castable
PageException
Castable.compareTo(java.lang.String)
public DumpData toDumpData(PageContext pageContext, int maxlevel, DumpProperties dp)
Dumpable
toDumpData
in interface Dumpable
railo.runtime.dump.Dumpable#toDumpData(railo.runtime.PageContext, int)
public long getMillis()
getMillis
in interface TimeSpan
TimeSpan.getMillis()
public long getMilli()
public long getSeconds()
getSeconds
in interface TimeSpan
TimeSpan.getSeconds()
public String toString()
toString
in class Object
Object.toString()
public int getDay()
getDay
in interface TimeSpan
TimeSpan.getDay()
public int getHour()
getHour
in interface TimeSpan
TimeSpan.getHour()
public int getMinute()
getMinute
in interface TimeSpan
TimeSpan.getMinute()
public int getSecond()
getSecond
in interface TimeSpan
TimeSpan.getSecond()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |