Package com.hp.ucmdb.api.util.schedule
Class HourHolder
java.lang.Object
com.hp.ucmdb.api.util.schedule.HourHolder
- All Implemented Interfaces:
Serializable
Created by IntelliJ IDEA.
User: rbitterfeld
Date: Mar 22, 2006
Time: 6:27:19 PM
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHourHolder
(int hour, int minute, String amPm) Deprecated.HourHolder
(String startTime, String format) parse the startTime string by the format, and create an HourHolder object that represents the hour of the day -
Method Summary
-
Field Details
-
FORMAT_24
- See Also:
-
FORMAT_12
- See Also:
-
-
Constructor Details
-
HourHolder
Deprecated. -
HourHolder
parse the startTime string by the format, and create an HourHolder object that represents the hour of the day- Parameters:
startTime
- if the startTime is an emty string, return an empty hourHolder (HourHolder(0,0,""))- Throws:
Exception
-
-
Method Details
-
getHour
public int getHour() -
getMinute
public int getMinute() -
getAmPm
-
getFormat
-
isEmpty
public boolean isEmpty() -
toString
-
toString
- Throws:
ParseException
-
getHourOfDay
public int getHourOfDay() -
compare
- Parameters:
h2
-- Returns:
- less then 0 if this hour comes before the given, 0 if the hours are equal and bigger then 0 if this is bigger then the given hour
-