commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scolebou...@apache.org
Subject svn commit: r1127544 - in /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/tuple: ImmutablePair.java MutablePair.java Pair.java
Date Wed, 25 May 2011 14:35:42 GMT
Author: scolebourne
Date: Wed May 25 14:35:42 2011
New Revision: 1127544

URL: http://svn.apache.org/viewvc?rev=1127544&view=rev
Log:
Make ImmutablePair final; Minor fixes

Modified:
    commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/tuple/ImmutablePair.java
    commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/tuple/MutablePair.java
    commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/tuple/Pair.java

Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/tuple/ImmutablePair.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/tuple/ImmutablePair.java?rev=1127544&r1=1127543&r2=1127544&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/tuple/ImmutablePair.java
(original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/tuple/ImmutablePair.java
Wed May 25 14:35:42 2011
@@ -26,13 +26,13 @@ package org.apache.commons.lang3.tuple;
  * 
  * <p>#ThreadSafe# if the objects are threadsafe</p>
  *
- * @param <L> the first element type
- * @param <R> the second element type
+ * @param <L> the left element type
+ * @param <R> the right element type
  *
  * @since Lang 3.0
  * @version $Id$
  */
-public class ImmutablePair<L, R> extends Pair<L, R> {
+public final class ImmutablePair<L, R> extends Pair<L, R> {
 
     /** Serialization version */
     private static final long serialVersionUID = 4954918890077093841L;

Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/tuple/MutablePair.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/tuple/MutablePair.java?rev=1127544&r1=1127543&r2=1127544&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/tuple/MutablePair.java
(original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/tuple/MutablePair.java
Wed May 25 14:35:42 2011
@@ -21,8 +21,8 @@ package org.apache.commons.lang3.tuple;
  * 
  * <p>Not #ThreadSafe#</p>
  *
- * @param <L> the first element type
- * @param <R> the second element type
+ * @param <L> the left element type
+ * @param <R> the right element type
  *
  * @since Lang 3.0
  * @version $Id$
@@ -82,7 +82,7 @@ public class MutablePair<L, R> extends P
     }
 
     /**
-     * Set the left element of the pair.
+     * Sets the left element of the pair.
      * 
      * @param left  the new value of the left element, may be null
      */
@@ -99,9 +99,9 @@ public class MutablePair<L, R> extends P
     }
 
     /**
-     * Set the right element of the pair.
+     * Sets the right element of the pair.
      * 
-     * @param right  the value of the right element
+     * @param right  the new value of the right element, may be null
      */
     public void setRight(R right) {
         this.right = right;

Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/tuple/Pair.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/tuple/Pair.java?rev=1127544&r1=1127543&r2=1127544&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/tuple/Pair.java (original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/tuple/Pair.java Wed May
25 14:35:42 2011
@@ -36,8 +36,8 @@ import org.apache.commons.lang3.text.For
  * However, there is no restriction on the type of the stored objects that may be stored.
  * If mutable objects are stored in the pair, then the pair itself effectively becomes mutable.</p>
  *
- * @param <L> the first element type
- * @param <R> the second element type
+ * @param <L> the left element type
+ * @param <R> the right element type
  *
  * @since Lang 3.0
  * @version $Id$
@@ -113,7 +113,7 @@ public abstract class Pair<L, R> impleme
 
     //-----------------------------------------------------------------------
     /**
-     * <p>Compares the pair based on the first element followed by the second element.
+     * <p>Compares the pair based on the left element followed by the right element.
      * The types must be {@code Comparable}.</p>
      * 
      * @param other  the other pair, not null



Mime
View raw message