home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgLangD.iso / VCAFE.3.0A / Sample.bin / Sortable.java < prev    next >
Text File  |  1998-03-19  |  442b  |  15 lines

  1. // Copyright (c) 1997, 1998 Symantec, Inc. All Rights Reserved.
  2.  
  3. /**
  4.  * Objects that implement this interface may be quicksorted using the 
  5.  * WLAUtil method quickSort().
  6.  */
  7. public interface Sortable {
  8.     
  9.     // Returns true if this "is before" the given obj
  10.     public boolean isLessThan(Object obj);
  11.     
  12.     // Returns true if this "is before or equal to" the given obj
  13.     public boolean isLessThanOrEqual(Object obj);
  14. }
  15.