Searched defs:delegate (Results 101 - 125 of 1356) sorted by last modified time

1234567891011>>

/external/guava/guava/src/com/google/common/util/concurrent/
H A DJdkFutureAdapters.java83 * <p>If the delegate future is interrupted or throws an unexpected unchecked
102 // This allows us to only start up a thread waiting on the delegate future
106 // The delegate future.
107 private final Future<V> delegate; field in class:JdkFutureAdapters.ListenableFutureAdapter
109 ListenableFutureAdapter(Future<V> delegate) { argument
110 this(delegate, defaultAdapterExecutor);
113 ListenableFutureAdapter(Future<V> delegate, Executor adapterExecutor) { argument
114 this.delegate = checkNotNull(delegate);
119 protected Future<V> delegate() { method in class:JdkFutureAdapters.ListenableFutureAdapter
[all...]
H A DMoreExecutors.java354 * given delegate executor. Those methods, as well as {@code execute} and
356 * delegate.execute}. All other methods are forwarded unchanged to the
357 * delegate. This implies that the returned {@code ListeningExecutorService}
358 * never calls the delegate's {@code submit}, {@code invokeAll}, and {@code
360 * the delegate's {@code execute} method or by wrapping the returned {@code
363 * <p>If the delegate executor was already an instance of {@code
370 ExecutorService delegate) {
371 return (delegate instanceof ListeningExecutorService)
372 ? (ListeningExecutorService) delegate
373 : (delegate instanceo
369 listeningDecorator( ExecutorService delegate) argument
397 listeningDecorator( ScheduledExecutorService delegate) argument
406 final ExecutorService delegate; field in class:MoreExecutors.ListeningDecorator
408 ListeningDecorator(ExecutorService delegate) argument
446 final ScheduledExecutorService delegate; field in class:MoreExecutors.ScheduledListeningDecorator
448 ScheduledListeningDecorator(ScheduledExecutorService delegate) argument
[all...]
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
H A DAbstractBiMap.java47 private transient Map<K, V> delegate; field in class:AbstractBiMap
57 delegate = backward;
61 @Override protected Map<K, V> delegate() { method in class:AbstractBiMap
62 return delegate;
66 * Specifies the delegate maps going in each direction. Called by the
70 checkState(delegate == null);
75 delegate = forward;
110 V oldValue = delegate.put(key, value);
120 inverse.delegate.put(newValue, key);
128 V oldValue = delegate
165 @Override protected Set<K> delegate() { method in class:AbstractBiMap.KeySet
228 @Override protected Set<V> delegate() { method in class:AbstractBiMap.ValueSet
275 @Override protected Set<Entry<K, V>> delegate() { method in class:AbstractBiMap.EntrySet
[all...]
H A DAbstractMapBasedMultiset.java326 private final Set<E> delegate; field in class:AbstractMapBasedMultiset.MapBasedElementSet
330 delegate = map.keySet();
333 @Override protected Set<E> delegate() { method in class:AbstractMapBasedMultiset.MapBasedElementSet
334 return delegate;
H A DForwardingImmutableCollection.java32 transient final Collection<E> delegate; field in class:ForwardingImmutableCollection
34 ForwardingImmutableCollection(Collection<E> delegate) { argument
35 this.delegate = delegate;
39 return Iterators.unmodifiableIterator(delegate.iterator());
43 return object != null && delegate.contains(object);
47 return delegate.containsAll(targets);
51 return delegate.size();
55 return delegate.isEmpty();
59 return delegate
[all...]
H A DImmutableAsList.java27 ImmutableAsList(List<E> delegate) { argument
28 super(delegate);
H A DImmutableBiMap.java108 ImmutableBiMap(Map<K, V> delegate) { argument
109 super(delegate);
H A DImmutableCollection.java135 static <E> ImmutableCollection<E> unsafeDelegate(Collection<E> delegate) { argument
136 return new ForwardingImmutableCollection<E>(delegate);
H A DImmutableEnumSet.java28 public ImmutableEnumSet(Set<E> delegate) { argument
29 super(delegate);
H A DImmutableList.java43 private transient final List<E> delegate; field in class:ImmutableList
45 ImmutableList(List<E> delegate) { argument
46 super(delegate);
47 this.delegate = Collections.unmodifiableList(delegate);
221 return delegate.indexOf(object);
225 return delegate.lastIndexOf(object);
245 return delegate.get(index);
249 return unsafeDelegateList(delegate.subList(fromIndex, toIndex));
253 return delegate
[all...]
H A DImmutableMap.java43 private transient final Map<K, V> delegate; field in class:ImmutableMap
46 this.delegate = Collections.emptyMap();
49 ImmutableMap(Map<? extends K, ? extends V> delegate) { argument
50 this.delegate = Collections.unmodifiableMap(delegate);
55 Map<K, V> delegate = Maps.newLinkedHashMap();
58 V previous = delegate.put(key, checkNotNull(entry.getValue()));
63 this.delegate = Collections.unmodifiableMap(delegate);
209 return delegate
[all...]
H A DImmutableSet.java43 ImmutableSet(Set<E> delegate) { argument
44 super(Collections.unmodifiableSet(delegate));
133 Set<E> delegate = Sets.newLinkedHashSet();
134 delegate.add(checkNotNull(first));
136 delegate.add(checkNotNull(elements.next()));
139 return unsafeDelegate(delegate);
144 static <E> ImmutableSet<E> unsafeDelegate(Set<E> delegate) { argument
145 switch (delegate.size()) {
149 return new SingletonImmutableSet<E>(delegate.iterator().next());
151 return new RegularImmutableSet<E>(delegate);
[all...]
H A DImmutableSortedMap.java68 ImmutableSortedMap(SortedMap<K, ? extends V> delegate) { argument
69 super(delegate);
70 this.comparator = (delegate.comparator() == null)
71 ? NATURAL_ORDER : delegate.comparator();
72 this.sortedDelegate = Collections.unmodifiableSortedMap(delegate);
79 SortedMap<K, V> delegate = Maps.newTreeMap(comparator);
81 delegate.put(entry.getKey(), entry.getValue());
83 return new ImmutableSortedMap<K, V>(delegate);
158 SortedMap<K, V> delegate = Maps.newTreeMap(comparator);
160 putEntryWithChecks(delegate, entr
[all...]
H A DImmutableSortedSet.java130 SortedSet<E> delegate = new TreeSet<E>(comparator);
133 delegate.add(element);
135 return new RegularImmutableSortedSet<E>(delegate, false);
213 SortedSet<E> delegate = new TreeSet<E>(comparator);
217 delegate.add(element);
219 return new RegularImmutableSortedSet<E>(delegate, false);
234 // Assumes that delegate doesn't have null elements and comparator.
236 SortedSet<E> delegate, boolean isSubset) {
237 return delegate.isEmpty()
238 ? emptySet(delegate
235 unsafeDelegateSortedSet( SortedSet<E> delegate, boolean isSubset) argument
[all...]
H A DLinkedHashMultimap.java167 final Set<V> delegate; field in class:LinkedHashMultimap.SetDecorator
170 SetDecorator(@Nullable K key, Set<V> delegate) { argument
171 this.delegate = delegate;
175 @Override protected Set<V> delegate() { method in class:LinkedHashMultimap.SetDecorator
176 return delegate;
194 boolean changed = delegate.add(value);
202 boolean changed = delegate.addAll(values);
204 linkedEntries.addAll(createEntries(delegate()));
210 for (V value : delegate) {
[all...]
H A DMaps.java741 @Override protected Collection<Entry<K, V>> delegate() { method in class:Maps.UnmodifiableEntries
746 final Iterator<Entry<K, V>> delegate = super.iterator();
756 @Override protected Iterator<Entry<K, V>> delegate() {
757 return delegate;
838 final BiMap<? extends K, ? extends V> delegate; field in class:Maps.UnmodifiableBiMap
842 UnmodifiableBiMap(BiMap<? extends K, ? extends V> delegate, argument
844 unmodifiableMap = Collections.unmodifiableMap(delegate);
845 this.delegate = delegate;
849 @Override protected Map<K, V> delegate() { method in class:Maps.UnmodifiableBiMap
1780 @Override protected Set<Entry<K, V>> delegate() { method in class:Maps.FilteredEntryMap.EntrySet
[all...]
H A DMultimaps.java374 * @param delegate the multimap for which an unmodifiable view is to be
379 Multimap<K, V> delegate) {
380 if (delegate instanceof UnmodifiableMultimap ||
381 delegate instanceof ImmutableMultimap) {
382 return delegate;
384 return new UnmodifiableMultimap<K, V>(delegate);
394 ImmutableMultimap<K, V> delegate) {
395 return checkNotNull(delegate);
400 final Multimap<K, V> delegate; field in class:Multimaps.UnmodifiableMultimap
407 UnmodifiableMultimap(final Multimap<K, V> delegate) { argument
378 unmodifiableMultimap( Multimap<K, V> delegate) argument
393 unmodifiableMultimap( ImmutableMultimap<K, V> delegate) argument
411 @Override protected Multimap<K, V> delegate() { method in class:Multimaps.UnmodifiableMultimap
530 final Collection<Collection<V>> delegate; field in class:Multimaps.UnmodifiableAsMapValues
531 UnmodifiableAsMapValues(Collection<Collection<V>> delegate) argument
534 @Override protected Collection<Collection<V>> delegate() { method in class:Multimaps.UnmodifiableAsMapValues
570 UnmodifiableListMultimap(ListMultimap<K, V> delegate) argument
573 @Override public ListMultimap<K, V> delegate() { method in class:Multimaps.UnmodifiableListMultimap
591 UnmodifiableSetMultimap(SetMultimap<K, V> delegate) argument
594 @Override public SetMultimap<K, V> delegate() { method in class:Multimaps.UnmodifiableSetMultimap
619 UnmodifiableSortedSetMultimap(SortedSetMultimap<K, V> delegate) argument
622 @Override public SortedSetMultimap<K, V> delegate() { method in class:Multimaps.UnmodifiableSortedSetMultimap
677 unmodifiableSetMultimap( SetMultimap<K, V> delegate) argument
692 unmodifiableSetMultimap( ImmutableSetMultimap<K, V> delegate) argument
732 unmodifiableSortedSetMultimap( SortedSetMultimap<K, V> delegate) argument
772 unmodifiableListMultimap( ListMultimap<K, V> delegate) argument
787 unmodifiableListMultimap( ImmutableListMultimap<K, V> delegate) argument
874 private final Set<Entry<K, Collection<V>>> delegate; field in class:Multimaps.UnmodifiableAsMapEntries
875 UnmodifiableAsMapEntries(Set<Entry<K, Collection<V>>> delegate) argument
879 @Override protected Set<Entry<K, Collection<V>>> delegate() { method in class:Multimaps.UnmodifiableAsMapEntries
2336 final Map<K, Collection<V>> delegate; field in class:Multimaps.FilteredMultimap.AsMap
2338 AsMap(Map<K, Collection<V>> delegate) argument
2342 @Override protected Map<K, Collection<V>> delegate() { method in class:Multimaps.FilteredMultimap.AsMap
[all...]
H A DRegularImmutableBiMap.java32 RegularImmutableBiMap(ImmutableMap<K, V> delegate) { argument
33 super(delegate);
36 for (Entry<K, V> entry : delegate.entrySet()) {
43 RegularImmutableBiMap(ImmutableMap<K, V> delegate, argument
45 super(delegate);
H A DRegularImmutableList.java27 RegularImmutableList(List<E> delegate) { argument
28 super(delegate);
H A DRegularImmutableMap.java28 RegularImmutableMap(Map<? extends K, ? extends V> delegate) { argument
29 super(delegate);
H A DRegularImmutableSet.java29 RegularImmutableSet(Set<E> delegate) { argument
30 super(delegate);
34 checkArgument(delegate.size() >= 2);
H A DRegularImmutableSortedSet.java31 RegularImmutableSortedSet(SortedSet<E> delegate, boolean isSubset) { argument
32 super(delegate);
H A DSets.java1278 * then delegate the call to the original Set<A>.
1313 final Set<A> delegate; field in class:Sets.TransformedSet
1316 TransformedSet(Set<A> delegate, InvertibleFunction<A, B> bijection) { argument
1317 this.delegate = delegate;
1322 return Iterators.transform(delegate.iterator(), bijection);
1326 return delegate.size();
1337 * of all A's (defined by that Set<A> delegate), and the image
1354 return delegate.contains(a) && Objects.equal(bijection.apply(a), o);
1358 return delegate
[all...]
H A DSynchronized.java56 final Object delegate; field in class:Synchronized.SynchronizedObject
59 SynchronizedObject(Object delegate, @Nullable Object mutex) { argument
60 this.delegate = checkNotNull(delegate);
64 Object delegate() { method in class:Synchronized.SynchronizedObject
65 return delegate;
72 return delegate.toString();
90 Collection<E> delegate, @Nullable Object mutex) {
91 super(delegate, mutex);
95 @Override Collection<E> delegate() { method in class:Synchronized.SynchronizedCollection
89 SynchronizedCollection( Collection<E> delegate, @Nullable Object mutex) argument
198 SynchronizedSet(Set<E> delegate, @Nullable Object mutex) argument
202 @Override Set<E> delegate() { method in class:Synchronized.SynchronizedSet
231 SynchronizedSortedSet(SortedSet<E> delegate, @Nullable Object mutex) argument
235 @Override SortedSet<E> delegate() { method in class:Synchronized.SynchronizedSortedSet
292 SynchronizedList(List<E> delegate, @Nullable Object mutex) argument
296 @Override List<E> delegate() { method in class:Synchronized.SynchronizedList
406 SynchronizedMultiset(Multiset<E> delegate, @Nullable Object mutex) argument
410 @Override Multiset<E> delegate() { method in class:Synchronized.SynchronizedMultiset
505 @Override Multimap<K, V> delegate() { method in class:Synchronized.SynchronizedMultimap
509 SynchronizedMultimap(Multimap<K, V> delegate, @Nullable Object mutex) argument
683 SynchronizedListMultimap( ListMultimap<K, V> delegate, @Nullable Object mutex) argument
687 @Override ListMultimap<K, V> delegate() { method in class:Synchronized.SynchronizedListMultimap
722 SynchronizedSetMultimap( SetMultimap<K, V> delegate, @Nullable Object mutex) argument
726 @Override SetMultimap<K, V> delegate() { method in class:Synchronized.SynchronizedSetMultimap
766 SynchronizedSortedSetMultimap( SortedSetMultimap<K, V> delegate, @Nullable Object mutex) argument
770 @Override SortedSetMultimap<K, V> delegate() { method in class:Synchronized.SynchronizedSortedSetMultimap
823 SynchronizedAsMapEntries( Set<Map.Entry<K, Collection<V>>> delegate, @Nullable Object mutex) argument
910 SynchronizedMap(Map<K, V> delegate, @Nullable Object mutex) argument
915 @Override Map<K, V> delegate() { method in class:Synchronized.SynchronizedMap
1038 SynchronizedSortedMap(SortedMap<K, V> delegate, @Nullable Object mutex) argument
1042 @Override SortedMap<K, V> delegate() { method in class:Synchronized.SynchronizedSortedMap
1098 SynchronizedBiMap(BiMap<K, V> delegate, @Nullable Object mutex, @Nullable BiMap<V, K> inverse) argument
1104 @Override BiMap<K, V> delegate() { method in class:Synchronized.SynchronizedBiMap
1143 SynchronizedAsMap(Map<K, Collection<V>> delegate, @Nullable Object mutex) argument
1185 SynchronizedAsMapValues( Collection<Collection<V>> delegate, @Nullable Object mutex) argument
[all...]
/external/guava/guava-testlib/src/com/google/common/collect/testing/
H A DNavigableMapTestSuiteBuilder.java112 final TestMapGenerator<K, V> delegate
119 NavigableMap<K, V> emptyMap = (NavigableMap<K, V>) delegate.create();
123 SampleElements<Entry<K, V>> samples = delegate.samples();
132 .using(new ForwardingTestMapGenerator<K, V>(delegate) {
157 delegate.create((Object[])
210 final TestMapGenerator<K, V> delegate
218 .using(new ForwardingTestMapGenerator<K, V>(delegate) {
220 NavigableMap<K, V> map = (NavigableMap<K, V>) delegate.create(entries);
231 private TestMapGenerator<K, V> delegate; field in class:NavigableMapTestSuiteBuilder.ForwardingTestMapGenerator
233 ForwardingTestMapGenerator(TestMapGenerator<K, V> delegate) { argument
[all...]

Completed in 1228 milliseconds

1234567891011>>