org.rapla.entities.domain
Class AppointmentBlockArray

java.lang.Object
  extended by org.rapla.entities.domain.AppointmentBlockArray

public class AppointmentBlockArray
extends Object

This class is introduced only for performance reasons. Stores the single appointment-blocks of one or more appointments in a given period.

See Also:
Appointment.createBlocks(java.util.Date, java.util.Date, org.rapla.entities.domain.AppointmentBlockArray)

Constructor Summary
AppointmentBlockArray()
           
 
Method Summary
 void add(long start, long end, Appointment appointment, boolean isException)
           
 Appointment getAppointmentAt(int index)
           
 long getEndAt(int index)
           
 long getStartAt(int index)
           
 boolean isException(int index)
           
 int size()
           
 void sort()
          sorts the entries according to their start-dates
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppointmentBlockArray

public AppointmentBlockArray()
Method Detail

add

public void add(long start,
                long end,
                Appointment appointment,
                boolean isException)

size

public int size()

sort

public void sort()
sorts the entries according to their start-dates


getStartAt

public long getStartAt(int index)

getEndAt

public long getEndAt(int index)

isException

public boolean isException(int index)

getAppointmentAt

public Appointment getAppointmentAt(int index)


Copyright © 2000-2006 Rapla Team. All Rights Reseserved.