commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scolebou...@apache.org
Subject cvs commit: jakarta-commons/lang/src/java/org/apache/commons/lang CharRange.java
Date Mon, 04 Aug 2003 00:46:24 GMT
scolebourne    2003/08/03 17:46:24

  Modified:    lang/src/java/org/apache/commons/lang CharRange.java
  Log:
  Add additional constructor to complete the set
  
  Revision  Changes    Path
  1.11      +14 -1     jakarta-commons/lang/src/java/org/apache/commons/lang/CharRange.java
  
  Index: CharRange.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/CharRange.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- CharRange.java	2 Aug 2003 18:18:33 -0000	1.10
  +++ CharRange.java	4 Aug 2003 00:46:24 -0000	1.11
  @@ -92,6 +92,19 @@
       }
   
       /**
  +     * <p>Constructs a <code>CharRange</code> over a single character,
  +     * optionally negating the range.</p>
  +     *
  +     * <p>A negated range includes everything except the specified char.</p>
  +     *
  +     * @param ch  only character in this range
  +     * @param negated  true to express everything except the range
  +     */
  +    public CharRange(char ch, boolean negated) {
  +        this(ch, ch, negated);
  +    }
  +
  +    /**
        * <p>Constructs a <code>CharRange</code> over a set of characters.</p>
        *
        * @param start  first character, inclusive, in this range
  
  
  

Mime
View raw message