brf.j2me.dynaworks.util
Class Time

java.lang.Object
  |
  +--brf.j2me.dynaworks.util.Time

public class Time
extends java.lang.Object

This is a primitive time class to handle time specifications in Palm build-in databases.

Version:
1.0
Author:
Bernd R. Fix

Field Summary
private  short hour
          the hour as an short.
private  short minutes
          the minutes as an short.
 
Constructor Summary
Time(int hour, int minutes)
          constructor from hh::mm
Time(short time)
          constructor from Palm time value
 
Method Summary
 int getHour()
          get the hour.
 int getMinutes()
          get the minutes.
 java.lang.String toString()
          convert Time to string
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

hour

private short hour
the hour as an short.


minutes

private short minutes
the minutes as an short.

Constructor Detail

Time

public Time(int hour,
            int minutes)
constructor from hh::mm

Parameters:
hour - int - hour of time spec.
minutes - int - minutes of time spec.

Time

public Time(short time)
constructor from Palm time value

Parameters:
time - short - set from Palm time spec.
Method Detail

getHour

public int getHour()
get the hour.

Returns:
int - hour of time.

getMinutes

public int getMinutes()
get the minutes.

Returns:
int - minutes of time.

toString

public java.lang.String toString()
convert Time to string

Overrides:
toString in class java.lang.Object
Returns:
String - time in string representation