org.jasig.schedassist.model
Class AvailableSchedule

java.lang.Object
  extended by 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

Constructor Summary
AvailableSchedule(Set<AvailableBlock> availableBlocks)
           
 
Method Summary
 void addAvailableBlocks(Set<AvailableBlock> availableBlocks)
          Add all of the supplied availableBlocks to this schedule.
 boolean equals(Object object)
           
 SortedSet<AvailableBlock> getAvailableBlocks()
           
 Date getScheduleEndTime()
           
 Date getScheduleStartTime()
           
 int hashCode()
           
 boolean isEmpty()
           
 void removeAvailableBlocks(Set<AvailableBlock> blocksToRemove)
          Remove all of the supplied availableBlocks from this schedule.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AvailableSchedule

public AvailableSchedule(Set<AvailableBlock> availableBlocks)
Parameters:
availableBlocks -
Method Detail

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.