org.jasig.schedassist.model
Class AvailableSchedule
java.lang.Object
org.jasig.schedassist.model.AvailableSchedule
public class AvailableSchedule
- extends Object
Container for a SortedSet of AvailableBlocks.
- Version:
- $Id: AvailableSchedule.java 2515 2010-09-09 18:23:35Z npblair $
- Author:
- Nicholas Blair, nblair@doit.wisc.edu
AvailableSchedule
public AvailableSchedule(Set<AvailableBlock> availableBlocks)
- Parameters:
availableBlocks -
getAvailableBlocks
public SortedSet<AvailableBlock> getAvailableBlocks()
- Returns:
- the availableBlocks
addAvailableBlocks
public void addAvailableBlocks(Set<AvailableBlock> availableBlocks)
- Add all of the supplied availableBlocks to this schedule.
- Parameters:
availableBlocks -
removeAvailableBlocks
public void removeAvailableBlocks(Set<AvailableBlock> blocksToRemove)
- Remove all of the supplied availableBlocks from this schedule.
- Parameters:
blocksToRemove -
isEmpty
public boolean isEmpty()
- Returns:
- true if the internal set of blocks is empty
getScheduleStartTime
public Date getScheduleStartTime()
- Returns:
- the start time of the first
AvailableBlock in this schedule, or null if isEmpty().
getScheduleEndTime
public Date getScheduleEndTime()
- Returns:
- the end time of the last
AvailableBlock in this schedule, or null if isEmpty().
equals
public boolean equals(Object object)
- Overrides:
equals in class Object
- See Also:
Object.equals(Object)
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
- See Also:
Object.hashCode()
Copyright © 2011 Jasig. All Rights Reserved.