com.github.fedy2.weather.data.unit
Class Time

java.lang.Object
  extended by com.github.fedy2.weather.data.unit.Time

public class Time
extends Object

Author:
"Federico De Faveri defaveri@gmail.com"

Constructor Summary
Time(int hours, int minutes, TimeConvention convention)
           
 
Method Summary
 TimeConvention getConvention()
          Returns the time convention.
 int getHours()
          Returns the hours.
 int getMinutes()
          Returns the minutes.
 String toString()
          
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Time

public Time(int hours,
            int minutes,
            TimeConvention convention)
Parameters:
hours -
minutes -
convention -
Method Detail

getHours

public int getHours()
Returns the hours.

Returns:
the hours

getMinutes

public int getMinutes()
Returns the minutes.

Returns:
the minutes

getConvention

public TimeConvention getConvention()
Returns the time convention.

Returns:
the convention

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2013. All rights reserved.