rwaldhoff 2003/11/30 23:32:18 Modified: functor/src/java/org/apache/commons/functor/util BinarySearch.java Log: cleanup Revision Changes Path 1.4 +15 -17 jakarta-commons-sandbox/functor/src/java/org/apache/commons/functor/util/BinarySearch.java Index: BinarySearch.java =================================================================== RCS file: /home/cvs/jakarta-commons-sandbox/functor/src/java/org/apache/commons/functor/util/BinarySearch.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- BinarySearch.java 1 Dec 2003 07:26:50 -0000 1.3 +++ BinarySearch.java 1 Dec 2003 07:32:18 -0000 1.4 @@ -73,18 +73,10 @@ */ public class BinarySearch extends RecursiveFunction { // TODO: should have explict null strategy - /*************************************************** - * Instance variables - ***************************************************/ - private List list = null; - private Comparable item = null; - private int lower = 0; - private int upper = 0; - /*************************************************** - * Constructors - ***************************************************/ + // constructors + //--------------------------------------------------------------- public BinarySearch(List list, Comparable item) { this.list = list; this.item = item; @@ -96,9 +88,8 @@ this.lower = lower; this.upper = upper; } - /*************************************************** - * Instance methods - ***************************************************/ + // instance methods variables + //--------------------------------------------------------------- /** * Either returns the next BinarySearch function or position of the item @@ -124,11 +115,18 @@ } } - /*************************************************** - * Class methods - ***************************************************/ + // class methods + //--------------------------------------------------------------- public static int execute(List list, Comparable item) { return ((Number)(new BinarySearch(list, item)).recurse()).intValue(); } + + // private variables + //--------------------------------------------------------------- + + private List list = null; + private Comparable item = null; + private int lower = 0; + private int upper = 0; }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]