home *** CD-ROM | disk | FTP | other *** search
/ Best Tools for JAVA / Best Tools for JAVA.iso / JAVA_ALL / IDE / SUBARTIC / SUB_ARCT / LIB / PRED_TRU.JAV < prev    next >
Encoding:
Text File  |  1996-10-04  |  1.4 KB  |  44 lines

  1.  
  2. package sub_arctic.lib;
  3.  
  4. /** 
  5.  * Interactor predicate class that always returns true. 
  6.  * 
  7.  * @see sub_arctic.lib.base_interactor#traverse_and_collect
  8.  * @author Scott Hudson
  9.  */
  10. public class pred_true implements interactor_pred {
  11.  
  12.   /* . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . */
  13.  
  14.   /** Perform the predicate "test" by returning true.
  15.    *  
  16.    *  @param obj        the interactor the predicate is testing.
  17.    *  @param parameters the additional parameters (of subclass specific type)
  18.    *                    to the component predicate.
  19.    *  @return true in all cases
  20.    */
  21.   public boolean test(interactor obj, Object parameters) 
  22.     {
  23.       return true;
  24.     }
  25.  
  26.   /* . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . */
  27. }
  28. /*=========================== COPYRIGHT NOTICE ===========================
  29.  
  30. This file is part of the subArctic user interface toolkit.
  31.  
  32. Copyright (c) 1996 Scott Hudson and Ian Smith
  33. All rights reserved.
  34.  
  35. The subArctic system is freely available for most uses under the terms
  36. and conditions described in 
  37.   http://www.cc.gatech.edu/gvu/ui/sub_arctic/sub_arctic/doc/usage.html 
  38. and appearing in full in the lib/interactor.java source file.
  39.  
  40. The current release and additional information about this software can be 
  41. found starting at: http://www.cc.gatech.edu/gvu/ui/sub_arctic/
  42.  
  43. ========================================================================*/
  44.