Package com.restfb.types
Class Hours
- java.lang.Object
-
- com.restfb.types.AbstractFacebookType
-
- com.restfb.types.Hours
-
- All Implemented Interfaces:
Serializable
public class Hours extends AbstractFacebookType
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Hours.DayOfWeek
static class
Hours.Hour
-
Constructor Summary
Constructors Constructor Description Hours()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addHour(String key, String value)
Map<Hours.DayOfWeek,Map<Integer,Hours.Hour>>
getHours()
returns the complete overview, with the day as key and a map as valueMap<Integer,Hours.Hour>
getHours(Hours.DayOfWeek day)
Returns a map of indices andHours.Hour
objects with the open and close time-
Methods inherited from class com.restfb.types.AbstractFacebookType
equals, hashCode, toString
-
-
-
-
Constructor Detail
-
Hours
public Hours()
-
-
Method Detail
-
getHours
public Map<Integer,Hours.Hour> getHours(Hours.DayOfWeek day)
Returns a map of indices andHours.Hour
objects with the open and close time- Parameters:
day
- the day the map should be returned for- Returns:
- the map containing the index and the
Hours.Hour
object
-
getHours
public Map<Hours.DayOfWeek,Map<Integer,Hours.Hour>> getHours()
returns the complete overview, with the day as key and a map as value- Returns:
- the complete overview
-
-