home *** CD-ROM | disk | FTP | other *** search
/ The Net: Ultimate Internet Guide / WWLCD1.ISO / pc / java / unuy2wen / cybcerone / main / tsolexceptions.java < prev    next >
Encoding:
Java Source  |  1996-08-14  |  648 b   |  32 lines

  1. // TsolExceptions.java
  2. // 22.03.96
  3. //
  4. // a group of TsolException objects
  5.  
  6. package cybcerone.main;
  7.  
  8. import java.util.Vector;
  9. import java.util.Enumeration;
  10.  
  11. import cybcerone.utils.Date;
  12.  
  13. /**
  14.  * A group of TsolException objects.  Easy way to tell if a specific date 
  15.  * is among them.
  16.  */
  17. class TsolExceptions {
  18.   private Vector exceptions;
  19.  
  20.   public TsolExceptions (Vector theExceptions) {
  21.     exceptions = theExceptions;
  22.   }
  23.   
  24.   public boolean contains (Date theDate) {
  25.     for (Enumeration e = exceptions.elements ();
  26.      e.hasMoreElements ();)
  27.       if (((TsolException)e.nextElement()).contains (theDate)) return true;
  28.     return false;
  29.   }
  30.   
  31. }
  32.