home *** CD-ROM | disk | FTP | other *** search
- package java.util;
-
- import java.io.IOException;
- import java.io.ObjectOutputStream;
- import java.io.Serializable;
-
- class Collections$SynchronizedCollection<E> implements Collection<E>, Serializable {
- private static final long serialVersionUID = 3053995032091335093L;
- // $FF: renamed from: c java.util.Collection
- final Collection<E> field_0;
- final Object mutex;
-
- Collections$SynchronizedCollection(Collection<E> var1) {
- if (var1 == null) {
- throw new NullPointerException();
- } else {
- this.field_0 = var1;
- this.mutex = this;
- }
- }
-
- Collections$SynchronizedCollection(Collection<E> var1, Object var2) {
- this.field_0 = var1;
- this.mutex = var2;
- }
-
- public int size() {
- synchronized(this.mutex) {
- return this.field_0.size();
- }
- }
-
- public boolean isEmpty() {
- synchronized(this.mutex) {
- return this.field_0.isEmpty();
- }
- }
-
- public boolean contains(Object var1) {
- synchronized(this.mutex) {
- return this.field_0.contains(var1);
- }
- }
-
- public Object[] toArray() {
- synchronized(this.mutex) {
- return this.field_0.toArray();
- }
- }
-
- public <T> T[] toArray(T[] var1) {
- synchronized(this.mutex) {
- return (T[])this.field_0.toArray(var1);
- }
- }
-
- public Iterator<E> iterator() {
- return this.field_0.iterator();
- }
-
- public boolean add(E var1) {
- synchronized(this.mutex) {
- return this.field_0.add(var1);
- }
- }
-
- public boolean remove(Object var1) {
- synchronized(this.mutex) {
- return this.field_0.remove(var1);
- }
- }
-
- public boolean containsAll(Collection<?> var1) {
- synchronized(this.mutex) {
- return this.field_0.containsAll(var1);
- }
- }
-
- public boolean addAll(Collection<? extends E> var1) {
- synchronized(this.mutex) {
- return this.field_0.addAll(var1);
- }
- }
-
- public boolean removeAll(Collection<?> var1) {
- synchronized(this.mutex) {
- return this.field_0.removeAll(var1);
- }
- }
-
- public boolean retainAll(Collection<?> var1) {
- synchronized(this.mutex) {
- return this.field_0.retainAll(var1);
- }
- }
-
- public void clear() {
- synchronized(this.mutex) {
- this.field_0.clear();
- }
- }
-
- public String toString() {
- synchronized(this.mutex) {
- return this.field_0.toString();
- }
- }
-
- private void writeObject(ObjectOutputStream var1) throws IOException {
- synchronized(this.mutex) {
- var1.defaultWriteObject();
- }
- }
- }
-