com.wewebu.expression.language
Class OwExprTime

java.lang.Object
  extended by com.wewebu.expression.language.OwExprTime
All Implemented Interfaces:
Comparable

public class OwExprTime
extends Object
implements Comparable

OwExprTime.

Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.

For licensing information read the license.txt file or
go to: http://wiki.alfresco.com


Field Summary
static double MILISECONDS_IN_HOUR
           
static double MILISECONDS_IN_MINUTE
           
static double MILLISECONDS_IN_DAY
           
static double SECONDS_IN_DAY
           
static double SECONDS_IN_HOUR
           
static double SECONDS_IN_MINUTE
           
 
Constructor Summary
OwExprTime(int hours_p, int minutes_p, int seconds_p)
           
OwExprTime(int years_p, int months_p, int days_p, double inDays_p)
           
OwExprTime(int years_p, int months_p, int days_p, double inDays_p, double inUTCDays_p, int hours_p, int minutes_p, int seconds_p)
           
OwExprTime(int years_p, int months_p, int days_p, double inDays_p, int hours_p, int minutes_p, int seconds_p)
           
 
Method Summary
 OwExprTime add(OwExprTime t_p)
           
 Calendar addTo(Calendar calendar_p)
           
 int compareTo(Object object_p)
           
static OwExprTime diff(Calendar c1_p, Calendar c2_p)
           
 boolean equals(Object obj_p)
           
 int getDays()
           
 int getHours()
           
 double getInDays()
           
 double getInUTCDays()
           
 int getMinutes()
           
 int getMonths()
           
 int getSeconds()
           
 int getYears()
           
 int hashCode()
           
static OwExprTime hours(int hours_p)
           
static OwExprTime minutes(int minutes_p)
           
static OwExprTime seconds(int seconds_p)
           
 OwExprTime substract(OwExprTime time_p)
           
 Calendar substractFrom(Calendar calendar_p)
           
static OwExprTime time(int hours_p, int minutes_p, int seconds_p)
           
static OwExprTime timeInDays(double days_p)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

SECONDS_IN_MINUTE

public static final double SECONDS_IN_MINUTE
See Also:
Constant Field Values

SECONDS_IN_HOUR

public static final double SECONDS_IN_HOUR
See Also:
Constant Field Values

SECONDS_IN_DAY

public static final double SECONDS_IN_DAY
See Also:
Constant Field Values

MILISECONDS_IN_HOUR

public static final double MILISECONDS_IN_HOUR
See Also:
Constant Field Values

MILISECONDS_IN_MINUTE

public static final double MILISECONDS_IN_MINUTE
See Also:
Constant Field Values

MILLISECONDS_IN_DAY

public static final double MILLISECONDS_IN_DAY
See Also:
Constant Field Values
Constructor Detail

OwExprTime

public OwExprTime(int years_p,
                  int months_p,
                  int days_p,
                  double inDays_p)

OwExprTime

public OwExprTime(int hours_p,
                  int minutes_p,
                  int seconds_p)

OwExprTime

public OwExprTime(int years_p,
                  int months_p,
                  int days_p,
                  double inDays_p,
                  int hours_p,
                  int minutes_p,
                  int seconds_p)

OwExprTime

public OwExprTime(int years_p,
                  int months_p,
                  int days_p,
                  double inDays_p,
                  double inUTCDays_p,
                  int hours_p,
                  int minutes_p,
                  int seconds_p)
Method Detail

seconds

public static final OwExprTime seconds(int seconds_p)

minutes

public static final OwExprTime minutes(int minutes_p)

hours

public static final OwExprTime hours(int hours_p)

time

public static final OwExprTime time(int hours_p,
                                    int minutes_p,
                                    int seconds_p)

timeInDays

public static final OwExprTime timeInDays(double days_p)

diff

public static final OwExprTime diff(Calendar c1_p,
                                    Calendar c2_p)

getYears

public final int getYears()

getMonths

public final int getMonths()

getDays

public final int getDays()

getInDays

public final double getInDays()

getInUTCDays

public final double getInUTCDays()

getHours

public final int getHours()

getMinutes

public final int getMinutes()

getSeconds

public final int getSeconds()

addTo

public final Calendar addTo(Calendar calendar_p)

substractFrom

public final Calendar substractFrom(Calendar calendar_p)

substract

public final OwExprTime substract(OwExprTime time_p)

add

public final OwExprTime add(OwExprTime t_p)

equals

public boolean equals(Object obj_p)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

compareTo

public int compareTo(Object object_p)
Specified by:
compareTo in interface Comparable


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.