/[classpath]/classpath/java/util/Collections.java
ViewVC logotype

Diff of /classpath/java/util/Collections.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.28.2.11 by gnu_andrew, Thu Jan 20 00:37:22 2005 UTC revision 1.28.2.12 by gnu_andrew, Sat Feb 19 10:50:43 2005 UTC
# Line 112  public class Collections Line 112  public class Collections
112     * The implementation of {@link #EMPTY_SET}. This class name is required     * The implementation of {@link #EMPTY_SET}. This class name is required
113     * for compatibility with Sun's JDK serializability.     * for compatibility with Sun's JDK serializability.
114     *     *
115     * @author Eric Blake <ebb9@email.byu.edu>     * @author Eric Blake (ebb9@email.byu.edu)
116     */     */
117    private static final class EmptySet<T> extends AbstractSet<T>    private static final class EmptySet<T> extends AbstractSet<T>
118      implements Serializable      implements Serializable
# Line 266  public class Collections Line 266  public class Collections
266     * The implementation of {@link #EMPTY_LIST}. This class name is required     * The implementation of {@link #EMPTY_LIST}. This class name is required
267     * for compatibility with Sun's JDK serializability.     * for compatibility with Sun's JDK serializability.
268     *     *
269     * @author Eric Blake <ebb9@email.byu.edu>     * @author Eric Blake (ebb9@email.byu.edu)
270     */     */
271    private static final class EmptyList<T> extends AbstractList<T>    private static final class EmptyList<T> extends AbstractList<T>
272      implements Serializable, RandomAccess      implements Serializable, RandomAccess
# Line 444  public class Collections Line 444  public class Collections
444     * The implementation of {@link #EMPTY_MAP}. This class name is required     * The implementation of {@link #EMPTY_MAP}. This class name is required
445     * for compatibility with Sun's JDK serializability.     * for compatibility with Sun's JDK serializability.
446     *     *
447     * @author Eric Blake <ebb9@email.byu.edu>     * @author Eric Blake (ebb9@email.byu.edu)
448     */     */
449    private static final class EmptyMap<K, V> extends AbstractMap<K, V>    private static final class EmptyMap<K, V> extends AbstractMap<K, V>
450      implements Serializable      implements Serializable
# Line 964  public class Collections Line 964  public class Collections
964     * The implementation of {@link #nCopies(int, Object)}. This class name     * The implementation of {@link #nCopies(int, Object)}. This class name
965     * is required for compatibility with Sun's JDK serializability.     * is required for compatibility with Sun's JDK serializability.
966     *     *
967     * @author Eric Blake <ebb9@email.byu.edu>     * @author Eric Blake (ebb9@email.byu.edu)
968     */     */
969    private static final class CopiesList<T> extends AbstractList<T>    private static final class CopiesList<T> extends AbstractList<T>
970      implements Serializable, RandomAccess      implements Serializable, RandomAccess
# Line 1175  public class Collections Line 1175  public class Collections
1175     * The implementation of {@link #reverseOrder()}. This class name     * The implementation of {@link #reverseOrder()}. This class name
1176     * is required for compatibility with Sun's JDK serializability.     * is required for compatibility with Sun's JDK serializability.
1177     *     *
1178     * @author Eric Blake <ebb9@email.byu.edu>     * @author Eric Blake (ebb9@email.byu.edu)
1179     */     */
1180    private static final class ReverseComparator<T>    private static final class ReverseComparator<T>
1181      implements Comparator<T>, Serializable      implements Comparator<T>, Serializable
# Line 1393  public class Collections Line 1393  public class Collections
1393     * The implementation of {@link #singleton(Object)}. This class name     * The implementation of {@link #singleton(Object)}. This class name
1394     * is required for compatibility with Sun's JDK serializability.     * is required for compatibility with Sun's JDK serializability.
1395     *     *
1396     * @author Eric Blake <ebb9@email.byu.edu>     * @author Eric Blake (ebb9@email.byu.edu)
1397     */     */
1398    private static final class SingletonSet<T> extends AbstractSet<T>    private static final class SingletonSet<T> extends AbstractSet<T>
1399      implements Serializable      implements Serializable
# Line 1567  public class Collections Line 1567  public class Collections
1567     * The implementation of {@link #singletonList(Object)}. This class name     * The implementation of {@link #singletonList(Object)}. This class name
1568     * is required for compatibility with Sun's JDK serializability.     * is required for compatibility with Sun's JDK serializability.
1569     *     *
1570     * @author Eric Blake <ebb9@email.byu.edu>     * @author Eric Blake (ebb9@email.byu.edu)
1571     */     */
1572    private static final class SingletonList<T> extends AbstractList<T>    private static final class SingletonList<T> extends AbstractList<T>
1573      implements Serializable, RandomAccess      implements Serializable, RandomAccess
# Line 2012  public class Collections Line 2012  public class Collections
2012     * Package visible, so that collections such as the one for     * Package visible, so that collections such as the one for
2013     * Hashtable.values() can specify which object to synchronize on.     * Hashtable.values() can specify which object to synchronize on.
2014     *     *
2015     * @author Eric Blake <ebb9@email.byu.edu>     * @author Eric Blake (ebb9@email.byu.edu)
2016     */     */
2017    static class SynchronizedCollection<T>    static class SynchronizedCollection<T>
2018      implements Collection<T>, Serializable      implements Collection<T>, Serializable
# Line 2345  public class Collections Line 2345  public class Collections
2345     * synchronized classes. These iterators must "sync" on the same object     * synchronized classes. These iterators must "sync" on the same object
2346     * as the collection they iterate over.     * as the collection they iterate over.
2347     *     *
2348     * @author Eric Blake <ebb9@email.byu.edu>     * @author Eric Blake (ebb9@email.byu.edu)
2349     */     */
2350    private static class SynchronizedIterator<T> implements Iterator<T>    private static class SynchronizedIterator<T> implements Iterator<T>
2351    {    {
# Line 2464  public class Collections Line 2464  public class Collections
2464     * serializability. Package visible, so that lists such as Vector.subList()     * serializability. Package visible, so that lists such as Vector.subList()
2465     * can specify which object to synchronize on.     * can specify which object to synchronize on.
2466     *     *
2467     * @author Eric Blake <ebb9@email.byu.edu>     * @author Eric Blake (ebb9@email.byu.edu)
2468     */     */
2469    static class SynchronizedList<T> extends SynchronizedCollection<T>    static class SynchronizedList<T> extends SynchronizedCollection<T>
2470      implements List<T>      implements List<T>
# Line 2772  public class Collections Line 2772  public class Collections
2772     * lists. This class name is required for compatibility with Sun's JDK     * lists. This class name is required for compatibility with Sun's JDK
2773     * serializability.     * serializability.
2774     *     *
2775     * @author Eric Blake <ebb9@email.byu.edu>     * @author Eric Blake (ebb9@email.byu.edu)
2776     */     */
2777    private static final class SynchronizedRandomAccessList<T>    private static final class SynchronizedRandomAccessList<T>
2778      extends SynchronizedList<T> implements RandomAccess      extends SynchronizedList<T> implements RandomAccess
# Line 2837  public class Collections Line 2837  public class Collections
2837     * The implementation of {@link SynchronizedList#listIterator()}. This     * The implementation of {@link SynchronizedList#listIterator()}. This
2838     * iterator must "sync" on the same object as the list it iterates over.     * iterator must "sync" on the same object as the list it iterates over.
2839     *     *
2840     * @author Eric Blake <ebb9@email.byu.edu>     * @author Eric Blake (ebb9@email.byu.edu)
2841     */     */
2842    private static final class SynchronizedListIterator<T>    private static final class SynchronizedListIterator<T>
2843      extends SynchronizedIterator<T> implements ListIterator<T>      extends SynchronizedIterator<T> implements ListIterator<T>
# Line 3012  public class Collections Line 3012  public class Collections
3012     * The implementation of {@link #synchronizedMap(Map)}. This     * The implementation of {@link #synchronizedMap(Map)}. This
3013     * class name is required for compatibility with Sun's JDK serializability.     * class name is required for compatibility with Sun's JDK serializability.
3014     *     *
3015     * @author Eric Blake <ebb9@email.byu.edu>     * @author Eric Blake (ebb9@email.byu.edu)
3016     */     */
3017    private static class SynchronizedMap<K, V> implements Map<K, V>, Serializable    private static class SynchronizedMap<K, V> implements Map<K, V>, Serializable
3018    {    {
# Line 3543  public class Collections Line 3543  public class Collections
3543     * Package visible, so that sets such as Hashtable.keySet()     * Package visible, so that sets such as Hashtable.keySet()
3544     * can specify which object to synchronize on.     * can specify which object to synchronize on.
3545     *     *
3546     * @author Eric Blake <ebb9@email.byu.edu>     * @author Eric Blake (ebb9@email.byu.edu)
3547     */     */
3548    static class SynchronizedSet<T> extends SynchronizedCollection<T>    static class SynchronizedSet<T> extends SynchronizedCollection<T>
3549      implements Set<T>      implements Set<T>
# Line 3647  public class Collections Line 3647  public class Collections
3647     * The implementation of {@link #synchronizedSortedMap(SortedMap)}. This     * The implementation of {@link #synchronizedSortedMap(SortedMap)}. This
3648     * class name is required for compatibility with Sun's JDK serializability.     * class name is required for compatibility with Sun's JDK serializability.
3649     *     *
3650     * @author Eric Blake <ebb9@email.byu.edu>     * @author Eric Blake (ebb9@email.byu.edu)
3651     */     */
3652    private static final class SynchronizedSortedMap<K, V>    private static final class SynchronizedSortedMap<K, V>
3653      extends SynchronizedMap<K, V>      extends SynchronizedMap<K, V>
# Line 3845  public class Collections Line 3845  public class Collections
3845     * The implementation of {@link #synchronizedSortedSet(SortedSet)}. This     * The implementation of {@link #synchronizedSortedSet(SortedSet)}. This
3846     * class name is required for compatibility with Sun's JDK serializability.     * class name is required for compatibility with Sun's JDK serializability.
3847     *     *
3848     * @author Eric Blake <ebb9@email.byu.edu>     * @author Eric Blake (ebb9@email.byu.edu)
3849     */     */
3850    private static final class SynchronizedSortedSet<T>    private static final class SynchronizedSortedSet<T>
3851      extends SynchronizedSet<T>      extends SynchronizedSet<T>
# Line 4575  public class Collections Line 4575  public class Collections
4575     * lists. This class name is required for compatibility with Sun's JDK     * lists. This class name is required for compatibility with Sun's JDK
4576     * serializability.     * serializability.
4577     *     *
4578     * @author Eric Blake <ebb9@email.byu.edu>     * @author Eric Blake (ebb9@email.byu.edu)
4579     */     */
4580    private static final class UnmodifiableRandomAccessList<T>    private static final class UnmodifiableRandomAccessList<T>
4581      extends UnmodifiableList<T> implements RandomAccess      extends UnmodifiableList<T> implements RandomAccess
# Line 4599  public class Collections Line 4599  public class Collections
4599    /**    /**
4600     * The implementation of {@link UnmodifiableList#listIterator()}.     * The implementation of {@link UnmodifiableList#listIterator()}.
4601     *     *
4602     * @author Eric Blake <ebb9@email.byu.edu>     * @author Eric Blake (ebb9@email.byu.edu)
4603     */     */
4604    private static final class UnmodifiableListIterator<T>    private static final class UnmodifiableListIterator<T>
4605      extends UnmodifiableIterator<T> implements ListIterator<T>      extends UnmodifiableIterator<T> implements ListIterator<T>
# Line 5122  public class Collections Line 5122  public class Collections
5122     * The implementation of {@link #unmodifiableSet(Set)}. This class     * The implementation of {@link #unmodifiableSet(Set)}. This class
5123     * name is required for compatibility with Sun's JDK serializability.     * name is required for compatibility with Sun's JDK serializability.
5124     *     *
5125     * @author Eric Blake <ebb9@email.byu.edu>     * @author Eric Blake (ebb9@email.byu.edu)
5126     */     */
5127    private static class UnmodifiableSet<T> extends UnmodifiableCollection<T>    private static class UnmodifiableSet<T> extends UnmodifiableCollection<T>
5128      implements Set<T>      implements Set<T>
# Line 5191  public class Collections Line 5191  public class Collections
5191     * The implementation of {@link #unmodifiableSortedMap(SortedMap)}. This     * The implementation of {@link #unmodifiableSortedMap(SortedMap)}. This
5192     * class name is required for compatibility with Sun's JDK serializability.     * class name is required for compatibility with Sun's JDK serializability.
5193     *     *
5194     * @author Eric Blake <ebb9@email.byu.edu>     * @author Eric Blake (ebb9@email.byu.edu)
5195     */     */
5196    private static class UnmodifiableSortedMap<K, V>    private static class UnmodifiableSortedMap<K, V>
5197      extends UnmodifiableMap<K, V>      extends UnmodifiableMap<K, V>

Legend:
Removed from v.1.28.2.11  
changed lines
  Added in v.1.28.2.12

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26