cvs commit: village/com/workingdogs/village Value.java

[email protected] Mon, 1 Sep 2003 23:54:34 -0700 (PDT)
Newsgroups gmane.comp.db.village.devel
Message-ID <[email protected]>
jon         03/09/01 23:54:34

  Modified:    com/workingdogs/village Value.java
  Log:
  Value.java: patch to add 'y' as a valid option to the private isTrue() method
  
  thanks to: Scott Eade <[email protected]>
  
  Revision  Changes    Path
  1.20      +3 -2      village/com/workingdogs/village/Value.java
  
  Index: Value.java
  ===================================================================
  RCS file: /home/cvs/village/com/workingdogs/village/Value.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- Value.java	25 Jun 2003 15:28:05 -0000	1.19
  +++ Value.java	2 Sep 2003 06:54:34 -0000	1.20
  @@ -68,7 +68,7 @@
   cross between a row and column and contains the information held there.
   
   @author Jon S. Stevens <A HREF="mailto:[email protected]">[email protected]</A>
  -@version $Revision: 1.19 $
  +@version $Revision: 1.20 $
   */
   public class Value
   {
  @@ -1203,13 +1203,14 @@
       }
       
       /**
  -     * @return true if (true || t | yes | 1)
  +     * @return true if (true || t | yes | y | 1)
        */
       private boolean isTrue(String value)
       {
           return (value.equalsIgnoreCase ("true") ||
                   value.equalsIgnoreCase ("t") ||
                   value.equalsIgnoreCase ("yes") || 
  +                value.equalsIgnoreCase ("y") || 
                   value.equals ("1"));
       }
   }