ForwardingCollection.java
3.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
package com.google.common.collect;
import com.google.common.annotations.GwtCompatible;
import com.google.common.base.Objects;
import java.util.Collection;
import java.util.Iterator;
import javax.annotation.Nullable;
@GwtCompatible
public abstract class ForwardingCollection<E>
extends ForwardingObject
implements Collection<E>
{
public boolean add(E paramE)
{
return delegate().add(paramE);
}
public boolean addAll(Collection<? extends E> paramCollection)
{
return delegate().addAll(paramCollection);
}
public void clear()
{
delegate().clear();
}
public boolean contains(Object paramObject)
{
return delegate().contains(paramObject);
}
public boolean containsAll(Collection<?> paramCollection)
{
return delegate().containsAll(paramCollection);
}
public abstract Collection<E> delegate();
public boolean isEmpty()
{
return delegate().isEmpty();
}
public Iterator<E> iterator()
{
return delegate().iterator();
}
public boolean remove(Object paramObject)
{
return delegate().remove(paramObject);
}
public boolean removeAll(Collection<?> paramCollection)
{
return delegate().removeAll(paramCollection);
}
public boolean retainAll(Collection<?> paramCollection)
{
return delegate().retainAll(paramCollection);
}
public int size()
{
return delegate().size();
}
protected boolean standardAddAll(Collection<? extends E> paramCollection)
{
return Iterators.addAll(this, paramCollection.iterator());
}
protected void standardClear()
{
Iterators.b(iterator());
}
protected boolean standardContains(@Nullable Object paramObject)
{
return Iterators.contains(iterator(), paramObject);
}
protected boolean standardContainsAll(Collection<?> paramCollection)
{
return Collections2.a(this, paramCollection);
}
protected boolean standardIsEmpty()
{
return !iterator().hasNext();
}
protected boolean standardRemove(@Nullable Object paramObject)
{
Iterator localIterator = iterator();
while (localIterator.hasNext()) {
if (Objects.equal(localIterator.next(), paramObject))
{
localIterator.remove();
return true;
}
}
return false;
}
protected boolean standardRemoveAll(Collection<?> paramCollection)
{
return Iterators.removeAll(iterator(), paramCollection);
}
protected boolean standardRetainAll(Collection<?> paramCollection)
{
return Iterators.retainAll(iterator(), paramCollection);
}
protected Object[] standardToArray()
{
return toArray(new Object[size()]);
}
protected <T> T[] standardToArray(T[] paramArrayOfT)
{
return ObjectArrays.a(this, paramArrayOfT);
}
protected String standardToString()
{
return Collections2.a(this);
}
public Object[] toArray()
{
return delegate().toArray();
}
public <T> T[] toArray(T[] paramArrayOfT)
{
return delegate().toArray(paramArrayOfT);
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/com/google/common/collect/ForwardingCollection.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/