|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.rit.slides.SlideSet
public class SlideSet
Class SlideSet provides a set of Slide
s.
Individual
SlideDescriptor
s can be added
to and removed from the set. A
Slide
is associated
with each
SlideDescriptor
; the
associated slide may be null if the slide has not arrived across the network
yet. The slide set provides an iterator for visiting all the slides in the
order in which they were added.
Note: Class SlideSet is multiple thread safe.
Constructor Summary | |
---|---|
SlideSet()
Construct a new, empty slide set. |
|
SlideSet(SlideSet theSlideSet)
Construct a new slide set that contains the same slide descriptors and slides as the given slide set. |
Method Summary | |
---|---|
void |
add(SlideDescriptor theSlideDescriptor,
Slide theSlide)
Add the given slide descriptor and associated slide to this slide set. |
void |
clear()
Clear this slide set. |
boolean |
contains(SlideDescriptor theSlideDescriptor)
Determine whether this slide set contains the given slide descriptor. |
boolean |
isEmpty()
Determine if this slide set is empty. |
SlideIterator |
iterator()
Obtain an iterator for visiting all the non-null slides in this slide set. |
int |
remove(Projector theProjector)
Remove all slide descriptors for the given projector object, and associated slides if any, from this slide set. |
int |
remove(SlideDescriptor theSlideDescriptor)
Remove the given slide descriptor, and associated slide if any, from this slide set. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SlideSet()
public SlideSet(SlideSet theSlideSet)
theSlideSet
- Slide set to copy.
NullPointerException
- (unchecked exception) Thrown if theSlideSet is null.Method Detail |
---|
public boolean isEmpty()
public void clear()
public void add(SlideDescriptor theSlideDescriptor, Slide theSlide)
theSlideDescriptor
- Slide descriptor.theSlide
- Associated slide, or null if there is no
associated slide.
NullPointerException
- (unchecked exception) Thrown if theSlideDescriptor is null.public int remove(SlideDescriptor theSlideDescriptor)
theSlideDescriptor
- Slide descriptor.
public int remove(Projector theProjector)
theProjector
- Unihandle for the projector object.
public boolean contains(SlideDescriptor theSlideDescriptor)
theSlideDescriptor
- Slide descriptor.
public SlideIterator iterator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |