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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
{ |
{ |
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> |
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 |
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> |
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 |
{ |
{ |
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> |
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> |
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> |
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 |
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> |
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> |
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> |