commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject cvs commit: jakarta-commons/lang/src/java/org/apache/commons/lang CharSet.java
Date Thu, 21 Aug 2003 05:25:34 GMT
ggregory    2003/08/20 22:25:34

  Modified:    lang/src/java/org/apache/commons/lang CharSet.java
  Log:
  Add @since 2.0 tags based on http://www.apache.org/~bayard/commons-lang-2.0/Commons-Lang-1.0.1-to-2.0/missingSinces.txt
  
  Revision  Changes    Path
  1.18      +33 -6     jakarta-commons/lang/src/java/org/apache/commons/lang/CharSet.java
  
  Index: CharSet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/CharSet.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- CharSet.java	19 Aug 2003 00:11:20 -0000	1.17
  +++ CharSet.java	21 Aug 2003 05:25:34 -0000	1.18
  @@ -69,6 +69,7 @@
    * @author Stephen Colebourne
    * @author Phil Steitz
    * @author Pete Gieser
  + * @author <a href="mailto:ggregory@seagullsw.com">Gary Gregory</a>
    * @since 1.0
    * @version $Id$
    */
  @@ -77,22 +78,43 @@
       /** Serialization lock, Lang version 2.0. */
       private static final long serialVersionUID = 5947847346149275958L;
   
  -    /** A CharSet defining no characters. */
  +    /** 
  +     * A CharSet defining no characters. 
  +     * @since 2.0
  +     */
       public static final CharSet EMPTY = new CharSet((String) null);
  -    /** A CharSet defining ASCII alphabetic characters "a-zA-Z". */
  +
  +    /** 
  +     * A CharSet defining ASCII alphabetic characters "a-zA-Z".
  +     * @since 2.0
  +     */
       public static final CharSet ASCII_ALPHA = new CharSet("a-zA-Z");
  -    /** A CharSet defining ASCII alphabetic characters "a-z". */
  +
  +    /** 
  +     * A CharSet defining ASCII alphabetic characters "a-z".
  +     * @since 2.0
  +     */
       public static final CharSet ASCII_ALPHA_LOWER = new CharSet("a-z");
  -    /** A CharSet defining ASCII alphabetic characters "A-Z". */
  +
  +    /** 
  +     * A CharSet defining ASCII alphabetic characters "A-Z".
  +     * @since 2.0
  +     */
       public static final CharSet ASCII_ALPHA_UPPER = new CharSet("A-Z");
  -    /** A CharSet defining ASCII alphabetic characters "0-9". */
  +
  +    /** 
  +     * A CharSet defining ASCII alphabetic characters "0-9".
  +     * @since 2.0
  +     */
       public static final CharSet ASCII_NUMERIC = new CharSet("0-9");
   
       /**
        * A Map of the common cases used in the factory.
        * Subclasses can add more common patterns if desired.
  +     * @since 2.0
        */
       protected static final Map COMMON = new HashMap();
  +    
       static {
           COMMON.put(null, EMPTY);
           COMMON.put("", EMPTY);
  @@ -148,6 +170,7 @@
        *
        * @param setStr  the String describing the set, may be null
        * @return a CharSet instance
  +     * @since 2.0
        */
       public static CharSet getInstance(String setStr) {
           Object set = COMMON.get(setStr);
  @@ -162,6 +185,7 @@
        * <p>Constructs a new CharSet using the set syntax.</p>
        *
        * @param setStr  the String describing the set, may be null
  +     * @since 2.0
        */
       protected CharSet(String setStr) {
           super();
  @@ -223,6 +247,7 @@
        * <p>Gets the internal set as an array of CharRange objects.</p>
        *
        * @return an array of immutable CharRange objects
  +     * @since 2.0
        */
       public CharRange[] getCharRanges() {
           return (CharRange[]) set.toArray(new CharRange[set.size()]);
  @@ -257,6 +282,7 @@
        *
        * @param obj  the object to compare to
        * @return true if equal
  +     * @since 2.0
        */
       public boolean equals(Object obj) {
           if (obj == this) {
  @@ -273,6 +299,7 @@
        * <p>Gets a hashCode compatable with the equals method.</p>
        *
        * @return a suitable hashCode
  +     * @since 2.0
        */
       public int hashCode() {
           return 89 + set.hashCode();
  
  
  

Mime
View raw message