ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/Collections.java
(Generate patch)

Comparing jsr166/src/main/java/util/Collections.java (file contents):
Revision 1.40 by jsr166, Thu Sep 16 03:57:13 2010 UTC vs.
Revision 1.43 by jsr166, Sat Oct 16 16:44:39 2010 UTC

# Line 1482 | Line 1482 | public class Collections {
1482  
1483                  UnmodifiableEntry(Map.Entry<? extends K, ? extends V> e) {this.e = e;}
1484  
1485 <                public K getKey()         {return e.getKey();}
1486 <                public V getValue()  {return e.getValue();}
1485 >                public K getKey()        {return e.getKey();}
1486 >                public V getValue()      {return e.getValue();}
1487                  public V setValue(V value) {
1488                      throw new UnsupportedOperationException();
1489                  }
1490 <                public int hashCode()     {return e.hashCode();}
1490 >                public int hashCode()    {return e.hashCode();}
1491                  public boolean equals(Object o) {
1492                      if (!(o instanceof Map.Entry))
1493                          return false;
# Line 1495 | Line 1495 | public class Collections {
1495                      return eq(e.getKey(),   t.getKey()) &&
1496                             eq(e.getValue(), t.getValue());
1497                  }
1498 <                public String toString()  {return e.toString();}
1498 >                public String toString() {return e.toString();}
1499              }
1500          }
1501      }
# Line 1766 | Line 1766 | public class Collections {
1766      {
1767          private static final long serialVersionUID = 8695801310862127406L;
1768  
1769 <        final private SortedSet<E> ss;
1769 >        private final SortedSet<E> ss;
1770  
1771          SynchronizedSortedSet(SortedSet<E> s) {
1772              super(s);
# Line 3317 | Line 3317 | public class Collections {
3317      {
3318          private static final long serialVersionUID = 3193687207550431679L;
3319  
3320 <        final private E element;
3320 >        private final E element;
3321  
3322          SingletonSet(E e) {element = e;}
3323  
# Line 3448 | Line 3448 | public class Collections {
3448       * @param  o the element to appear repeatedly in the returned list.
3449       * @return an immutable list consisting of <tt>n</tt> copies of the
3450       *         specified object.
3451 <     * @throws IllegalArgumentException if n &lt; 0.
3451 >     * @throws IllegalArgumentException if {@code n < 0}
3452       * @see    List#addAll(Collection)
3453       * @see    List#addAll(int, Collection)
3454       */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines