org.promotego.logic.storehours
Class StoreHours
java.lang.Object
org.promotego.logic.storehours.StoreHours
- Direct Known Subclasses:
- NullStoreHours
public class StoreHours
- extends java.lang.Object
A representation of times a store is open and closed.
The StoreHours object is mapped to and from a simple language for
purposes of mapping the object to a persistent store. The format
is as follows:
MON 8-19;TUE-FRI 7-21;SAT-SUN 10-19
- Author:
- alf
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
StoreHours
public StoreHours()
StoreHours
public StoreHours(java.lang.String hourString)
StoreHours
public StoreHours(java.util.Collection<HourSpecification> hourSpecs)
isOpen
public boolean isOpen(java.util.Date startTime,
java.util.Date endTime)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
setHours
public void setHours(java.lang.String hourString)
getHourSpecifications
public java.util.Set<HourSpecification> getHourSpecifications()
equals
public boolean equals(java.lang.Object anotherObject)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
Copyright © 2007. All Rights Reserved.