Compoze Software, Inc.

com.compoze.calendar
Class AppointmentList


java.lang.Object

  |

  +--java.util.AbstractCollection

        |

        +--java.util.AbstractList

              |

              +--java.util.AbstractSequentialList

                    |

                    +--java.util.LinkedList

                          |

                          +--com.compoze.calendar.AppointmentList

All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.io.Serializable

public class AppointmentList
extends java.util.LinkedList

This class represents a list of appointments. This list provides convenience methods to create sub-lists of appointments based on specified dates. This list is unmodifiable therefore attempts to modify the list will throw an UnsupportedOperationException.

See Also:
Appointments.appointments(), subList(java.util.Date,java.util.Calendar), Serialized Form

Fields inherited from class java.util.AbstractList
modCount
 
Method Summary
 void add(int index, java.lang.Object element)
          Inserts the specified element at the specified position in this list (optional operation).
 boolean add(java.lang.Object element)
          Inserts the specified element to the end of this list (optional operation).
 void clear()
          Removes all of the elements from this list (optional operation).
 java.util.List subList(java.util.Date givenDate)
          Returns an unmodifiable appointment list of the portion of this list occuring on the given date.
 java.util.List subList(java.util.Date givenDate, java.util.Calendar cal)
          Returns an unmodifiable appointment list of the portion of this list occuring on the given date.
 java.util.List subList(java.util.Date startDate, java.util.Date endDate)
          Returns an unmodifiable appointment list of the portion of this list between the specified start and end date range.
 
Methods inherited from class java.util.LinkedList
addAll, addAll, addFirst, addLast, clone, contains, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, remove, remove, removeFirst, removeLast, set, size, toArray, toArray
 
Methods inherited from class java.util.AbstractSequentialList
iterator
 
Methods inherited from class java.util.AbstractList
equals, hashCode, listIterator, removeRange, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, retainAll, subList
 

Method Detail

add


public void add(int index,
                java.lang.Object element)
Inserts the specified element at the specified position in this list (optional operation).
Overrides:
add in class java.util.LinkedList
Parameters:
index - index at which the specified element is to be inserted
element - element to be inserted
Throws:
java.lang.UnsupportedOperationException - add is not supported

add


public boolean add(java.lang.Object element)
Inserts the specified element to the end of this list (optional operation).
Overrides:
add in class java.util.LinkedList
Parameters:
element - element to be inserted
Throws:
java.lang.UnsupportedOperationException - add is not supported

clear


public void clear()
Removes all of the elements from this list (optional operation).
Overrides:
clear in class java.util.LinkedList
Throws:
java.lang.UnsupportedOperationException - clear is not supported

subList


public java.util.List subList(java.util.Date givenDate)
Returns an unmodifiable appointment list of the portion of this list occuring on the given date. The default calendar instance is used.
Parameters:
givenDate - the given date
Returns:
the unmodifiable list of Appointment objects

subList


public java.util.List subList(java.util.Date givenDate,
                              java.util.Calendar cal)
Returns an unmodifiable appointment list of the portion of this list occuring on the given date.
Parameters:
givenDate - the given date
cal - the calendar
Returns:
the unmodifiable list of Appointment objects

subList


public java.util.List subList(java.util.Date startDate,
                              java.util.Date endDate)
Returns an unmodifiable appointment list of the portion of this list between the specified start and end date range. Appointments are considered between this date range if any part of the appointment date range overlaps the specified date range.
Parameters:
startDate - the start date
endDate - the end date
Returns:
the unmodifiable list of Appointment objects with the date range
See Also:
DateRange

Compoze Software, Inc.

Copyright ©1999-2001 Compoze Software, Inc. All rights reserved.