Class HourHolder

java.lang.Object
com.hp.ucmdb.api.util.schedule.HourHolder
All Implemented Interfaces:
Serializable

public class HourHolder extends Object implements Serializable
Created by IntelliJ IDEA. User: rbitterfeld Date: Mar 22, 2006 Time: 6:27:19 PM
See Also:
  • Field Details

  • Constructor Details

    • HourHolder

      @Deprecated public HourHolder(int hour, int minute, String amPm)
      Deprecated.
    • HourHolder

      public HourHolder(String startTime, String format) throws Exception
      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

      public String getAmPm()
    • getFormat

      public String getFormat()
    • isEmpty

      public boolean isEmpty()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toString

      public String toString(String hourFormat) throws ParseException
      Throws:
      ParseException
    • getHourOfDay

      public int getHourOfDay()
    • compare

      public int compare(HourHolder h2)
      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