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/collections RELEASE-NOTES.html
Date Wed, 31 Mar 2004 22:06:12 GMT
scolebourne    2004/03/31 14:06:12

  Modified:    collections/src/java/org/apache/commons/collections/functors
                        NotNullPredicate.java NOPClosure.java
                        StringValueTransformer.java FalsePredicate.java
                        ExceptionClosure.java CloneTransformer.java
                        ExceptionFactory.java TruePredicate.java
                        NullPredicate.java ExceptionPredicate.java
                        ExceptionTransformer.java NOPTransformer.java
               collections RELEASE-NOTES.html
  Log:
  Add additional getInstance() methods for consistency
  bugs 27856,27857
  
  Revision  Changes    Path
  1.4       +12 -3     jakarta-commons/collections/src/java/org/apache/commons/collections/functors/NotNullPredicate.java
  
  Index: NotNullPredicate.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/functors/NotNullPredicate.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- NotNullPredicate.java	18 Feb 2004 00:59:20 -0000	1.3
  +++ NotNullPredicate.java	31 Mar 2004 22:06:11 -0000	1.4
  @@ -32,9 +32,18 @@
       /** Serial version UID */
       static final long serialVersionUID = 7533784454832764388L;
       
  -    /** Singleton predicate instance */    
  +    /** Singleton predicate instance */
       public static final Predicate INSTANCE = new NotNullPredicate();
  -    
  +
  +    /**
  +     * Factory returning the singleton instance.
  +     * 
  +     * @return the singleton instance
  +     */
  +    public static Predicate getInstance() {
  +        return INSTANCE;
  +    }
  +
       /**
        * Restricted constructor.
        */
  
  
  
  1.4       +12 -3     jakarta-commons/collections/src/java/org/apache/commons/collections/functors/NOPClosure.java
  
  Index: NOPClosure.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/functors/NOPClosure.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- NOPClosure.java	18 Feb 2004 00:59:20 -0000	1.3
  +++ NOPClosure.java	31 Mar 2004 22:06:11 -0000	1.4
  @@ -32,9 +32,18 @@
       /** Serial version UID */
       static final long serialVersionUID = 3518477308466486130L;
   
  -    /** Singleton predicate instance */    
  +    /** Singleton predicate instance */
       public static final Closure INSTANCE = new NOPClosure();
  -    
  +
  +    /**
  +     * Factory returning the singleton instance.
  +     * 
  +     * @return the singleton instance
  +     */
  +    public static Closure getInstance() {
  +        return INSTANCE;
  +    }
  +
       /**
        * Constructor
        */
  
  
  
  1.5       +12 -3     jakarta-commons/collections/src/java/org/apache/commons/collections/functors/StringValueTransformer.java
  
  Index: StringValueTransformer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/functors/StringValueTransformer.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- StringValueTransformer.java	18 Feb 2004 00:59:20 -0000	1.4
  +++ StringValueTransformer.java	31 Mar 2004 22:06:11 -0000	1.5
  @@ -32,9 +32,18 @@
       /** Serial version UID */
       static final long serialVersionUID = 7511110693171758606L;
   
  -    /** Singleton predicate instance */    
  +    /** Singleton predicate instance */
       public static final Transformer INSTANCE = new StringValueTransformer();
  -    
  +
  +    /**
  +     * Factory returning the singleton instance.
  +     * 
  +     * @return the singleton instance
  +     */
  +    public static Transformer getInstance() {
  +        return INSTANCE;
  +    }
  +
       /**
        * Restricted constructor.
        */
  
  
  
  1.4       +12 -3     jakarta-commons/collections/src/java/org/apache/commons/collections/functors/FalsePredicate.java
  
  Index: FalsePredicate.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/functors/FalsePredicate.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- FalsePredicate.java	18 Feb 2004 00:59:20 -0000	1.3
  +++ FalsePredicate.java	31 Mar 2004 22:06:11 -0000	1.4
  @@ -32,9 +32,18 @@
       /** Serial version UID */
       static final long serialVersionUID = 7533784454832764388L;
       
  -    /** Singleton predicate instance */    
  +    /** Singleton predicate instance */
       public static final Predicate INSTANCE = new FalsePredicate();
  -    
  +
  +    /**
  +     * Factory returning the singleton instance.
  +     * 
  +     * @return the singleton instance
  +     */
  +    public static Predicate getInstance() {
  +        return INSTANCE;
  +    }
  +
       /**
        * Restricted constructor.
        */
  
  
  
  1.5       +12 -3     jakarta-commons/collections/src/java/org/apache/commons/collections/functors/ExceptionClosure.java
  
  Index: ExceptionClosure.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/functors/ExceptionClosure.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ExceptionClosure.java	18 Feb 2004 00:59:20 -0000	1.4
  +++ ExceptionClosure.java	31 Mar 2004 22:06:11 -0000	1.5
  @@ -34,9 +34,18 @@
       static final long serialVersionUID = 7179106032121985545L;
       
   
  -    /** Singleton predicate instance */    
  +    /** Singleton predicate instance */
       public static final Closure INSTANCE = new ExceptionClosure();
  -    
  +
  +    /**
  +     * Factory returning the singleton instance.
  +     * 
  +     * @return the singleton instance
  +     */
  +    public static Closure getInstance() {
  +        return INSTANCE;
  +    }
  +
       /**
        * Restricted constructor.
        */
  
  
  
  1.4       +12 -3     jakarta-commons/collections/src/java/org/apache/commons/collections/functors/CloneTransformer.java
  
  Index: CloneTransformer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/functors/CloneTransformer.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- CloneTransformer.java	18 Feb 2004 00:59:20 -0000	1.3
  +++ CloneTransformer.java	31 Mar 2004 22:06:11 -0000	1.4
  @@ -34,9 +34,18 @@
       /** Serial version UID */
       static final long serialVersionUID = -8188742709499652567L;
   
  -    /** Singleton predicate instance */    
  +    /** Singleton predicate instance */
       public static final Transformer INSTANCE = new CloneTransformer();
  -    
  +
  +    /**
  +     * Factory returning the singleton instance.
  +     * 
  +     * @return the singleton instance
  +     */
  +    public static Transformer getInstance() {
  +        return INSTANCE;
  +    }
  +
       /**
        * Constructor
        */
  
  
  
  1.5       +12 -3     jakarta-commons/collections/src/java/org/apache/commons/collections/functors/ExceptionFactory.java
  
  Index: ExceptionFactory.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/functors/ExceptionFactory.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ExceptionFactory.java	18 Feb 2004 00:59:20 -0000	1.4
  +++ ExceptionFactory.java	31 Mar 2004 22:06:11 -0000	1.5
  @@ -34,9 +34,18 @@
       static final long serialVersionUID = 7179106032121985545L;
       
   
  -    /** Singleton predicate instance */    
  +    /** Singleton predicate instance */
       public static final Factory INSTANCE = new ExceptionFactory();
  -    
  +
  +    /**
  +     * Factory returning the singleton instance.
  +     * 
  +     * @return the singleton instance
  +     */
  +    public static Factory getInstance() {
  +        return INSTANCE;
  +    }
  +
       /**
        * Restricted constructor.
        */
  
  
  
  1.4       +12 -3     jakarta-commons/collections/src/java/org/apache/commons/collections/functors/TruePredicate.java
  
  Index: TruePredicate.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/functors/TruePredicate.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- TruePredicate.java	18 Feb 2004 00:59:20 -0000	1.3
  +++ TruePredicate.java	31 Mar 2004 22:06:11 -0000	1.4
  @@ -32,9 +32,18 @@
       /** Serial version UID */
       static final long serialVersionUID = 3374767158756189740L;
       
  -    /** Singleton predicate instance */    
  +    /** Singleton predicate instance */
       public static final Predicate INSTANCE = new TruePredicate();
  -    
  +
  +    /**
  +     * Factory returning the singleton instance.
  +     * 
  +     * @return the singleton instance
  +     */
  +    public static Predicate getInstance() {
  +        return INSTANCE;
  +    }
  +
       /**
        * Restricted constructor.
        */
  
  
  
  1.4       +12 -3     jakarta-commons/collections/src/java/org/apache/commons/collections/functors/NullPredicate.java
  
  Index: NullPredicate.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/functors/NullPredicate.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- NullPredicate.java	18 Feb 2004 00:59:20 -0000	1.3
  +++ NullPredicate.java	31 Mar 2004 22:06:11 -0000	1.4
  @@ -32,9 +32,18 @@
       /** Serial version UID */
       static final long serialVersionUID = 7533784454832764388L;
       
  -    /** Singleton predicate instance */    
  +    /** Singleton predicate instance */
       public static final Predicate INSTANCE = new NullPredicate();
  -    
  +
  +    /**
  +     * Factory returning the singleton instance.
  +     * 
  +     * @return the singleton instance
  +     */
  +    public static Predicate getInstance() {
  +        return INSTANCE;
  +    }
  +
       /**
        * Restricted constructor.
        */
  
  
  
  1.5       +12 -3     jakarta-commons/collections/src/java/org/apache/commons/collections/functors/ExceptionPredicate.java
  
  Index: ExceptionPredicate.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/functors/ExceptionPredicate.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ExceptionPredicate.java	18 Feb 2004 00:59:20 -0000	1.4
  +++ ExceptionPredicate.java	31 Mar 2004 22:06:11 -0000	1.5
  @@ -33,9 +33,18 @@
       /** Serial version UID */
       static final long serialVersionUID = 7179106032121985545L;
       
  -    /** Singleton predicate instance */    
  +    /** Singleton predicate instance */
       public static final Predicate INSTANCE = new ExceptionPredicate();
  -    
  +
  +    /**
  +     * Factory returning the singleton instance.
  +     * 
  +     * @return the singleton instance
  +     */
  +    public static Predicate getInstance() {
  +        return INSTANCE;
  +    }
  +
       /**
        * Restricted constructor.
        */
  
  
  
  1.5       +12 -3     jakarta-commons/collections/src/java/org/apache/commons/collections/functors/ExceptionTransformer.java
  
  Index: ExceptionTransformer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/functors/ExceptionTransformer.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ExceptionTransformer.java	18 Feb 2004 00:59:20 -0000	1.4
  +++ ExceptionTransformer.java	31 Mar 2004 22:06:11 -0000	1.5
  @@ -34,9 +34,18 @@
       static final long serialVersionUID = 7179106032121985545L;
       
   
  -    /** Singleton predicate instance */    
  +    /** Singleton predicate instance */
       public static final Transformer INSTANCE = new ExceptionTransformer();
  -    
  +
  +    /**
  +     * Factory returning the singleton instance.
  +     * 
  +     * @return the singleton instance
  +     */
  +    public static Transformer getInstance() {
  +        return INSTANCE;
  +    }
  +
       /**
        * Restricted constructor.
        */
  
  
  
  1.4       +12 -3     jakarta-commons/collections/src/java/org/apache/commons/collections/functors/NOPTransformer.java
  
  Index: NOPTransformer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/functors/NOPTransformer.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- NOPTransformer.java	18 Feb 2004 00:59:20 -0000	1.3
  +++ NOPTransformer.java	31 Mar 2004 22:06:11 -0000	1.4
  @@ -32,9 +32,18 @@
       /** Serial version UID */
       static final long serialVersionUID = 2133891748318574490L;
   
  -    /** Singleton predicate instance */    
  +    /** Singleton predicate instance */
       public static final Transformer INSTANCE = new NOPTransformer();
  -    
  +
  +    /**
  +     * Factory returning the singleton instance.
  +     * 
  +     * @return the singleton instance
  +     */
  +    public static Transformer getInstance() {
  +        return INSTANCE;
  +    }
  +
       /**
        * Constructor
        */
  
  
  
  1.19      +1 -0      jakarta-commons/collections/RELEASE-NOTES.html
  
  Index: RELEASE-NOTES.html
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/RELEASE-NOTES.html,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- RELEASE-NOTES.html	31 Mar 2004 21:43:27 -0000	1.18
  +++ RELEASE-NOTES.html	31 Mar 2004 22:06:12 -0000	1.19
  @@ -35,6 +35,7 @@
   <li>Functors - Add get methods to retrieve internal state [27515]</li>
   <li>MultiHashMap - Add five methods to improve the API</li>
   <li>CollectionUtils - Add size(Object) method to find the size of various collection-like
objects [27909]</li>
  +<li>Functors - Add additional getInstance() methods for consistency [27856,27857]</li>
   </ul>
   
   <center><h3>BUG FIXES</h3></center>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message