ForwardingSortedMultiset.java
3.77 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
package com.google.common.collect;
import com.google.common.annotations.Beta;
import com.google.common.annotations.GwtCompatible;
import java.util.Comparator;
import java.util.Iterator;
import java.util.NavigableSet;
import java.util.Set;
import nu;
import qb.b;
@Beta
@GwtCompatible(emulated=true)
public abstract class ForwardingSortedMultiset<E>
extends ForwardingMultiset<E>
implements SortedMultiset<E>
{
public Comparator<? super E> comparator()
{
return delegate().comparator();
}
protected abstract SortedMultiset<E> delegate();
public SortedMultiset<E> descendingMultiset()
{
return delegate().descendingMultiset();
}
public NavigableSet<E> elementSet()
{
return (NavigableSet)super.elementSet();
}
public Multiset.Entry<E> firstEntry()
{
return delegate().firstEntry();
}
public SortedMultiset<E> headMultiset(E paramE, BoundType paramBoundType)
{
return delegate().headMultiset(paramE, paramBoundType);
}
public Multiset.Entry<E> lastEntry()
{
return delegate().lastEntry();
}
public Multiset.Entry<E> pollFirstEntry()
{
return delegate().pollFirstEntry();
}
public Multiset.Entry<E> pollLastEntry()
{
return delegate().pollLastEntry();
}
protected Multiset.Entry<E> standardFirstEntry()
{
Object localObject = entrySet().iterator();
if (!((Iterator)localObject).hasNext()) {
return null;
}
localObject = (Multiset.Entry)((Iterator)localObject).next();
return Multisets.immutableEntry(((Multiset.Entry)localObject).getElement(), ((Multiset.Entry)localObject).getCount());
}
protected Multiset.Entry<E> standardLastEntry()
{
Object localObject = descendingMultiset().entrySet().iterator();
if (!((Iterator)localObject).hasNext()) {
return null;
}
localObject = (Multiset.Entry)((Iterator)localObject).next();
return Multisets.immutableEntry(((Multiset.Entry)localObject).getElement(), ((Multiset.Entry)localObject).getCount());
}
protected Multiset.Entry<E> standardPollFirstEntry()
{
Iterator localIterator = entrySet().iterator();
if (!localIterator.hasNext()) {
return null;
}
Multiset.Entry localEntry = (Multiset.Entry)localIterator.next();
localEntry = Multisets.immutableEntry(localEntry.getElement(), localEntry.getCount());
localIterator.remove();
return localEntry;
}
protected Multiset.Entry<E> standardPollLastEntry()
{
Iterator localIterator = descendingMultiset().entrySet().iterator();
if (!localIterator.hasNext()) {
return null;
}
Multiset.Entry localEntry = (Multiset.Entry)localIterator.next();
localEntry = Multisets.immutableEntry(localEntry.getElement(), localEntry.getCount());
localIterator.remove();
return localEntry;
}
protected SortedMultiset<E> standardSubMultiset(E paramE1, BoundType paramBoundType1, E paramE2, BoundType paramBoundType2)
{
return tailMultiset(paramE1, paramBoundType1).headMultiset(paramE2, paramBoundType2);
}
public SortedMultiset<E> subMultiset(E paramE1, BoundType paramBoundType1, E paramE2, BoundType paramBoundType2)
{
return delegate().subMultiset(paramE1, paramBoundType1, paramE2, paramBoundType2);
}
public SortedMultiset<E> tailMultiset(E paramE, BoundType paramBoundType)
{
return delegate().tailMultiset(paramE, paramBoundType);
}
public abstract class StandardDescendingMultiset
extends nu<E>
{
public StandardDescendingMultiset() {}
}
public class StandardElementSet
extends qb.b<E>
{
public StandardElementSet()
{
super();
}
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/com/google/common/collect/ForwardingSortedMultiset.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/