/external/guava/guava/src/com/google/common/util/concurrent/ |
H A D | JdkFutureAdapters.java | 83 * <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 D | MoreExecutors.java | 354 * 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 D | AbstractBiMap.java | 47 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 D | AbstractMapBasedMultiset.java | 326 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 D | ForwardingImmutableCollection.java | 32 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 D | ImmutableAsList.java | 27 ImmutableAsList(List<E> delegate) { argument 28 super(delegate);
|
H A D | ImmutableBiMap.java | 108 ImmutableBiMap(Map<K, V> delegate) { argument 109 super(delegate);
|
H A D | ImmutableCollection.java | 135 static <E> ImmutableCollection<E> unsafeDelegate(Collection<E> delegate) { argument 136 return new ForwardingImmutableCollection<E>(delegate);
|
H A D | ImmutableEnumSet.java | 28 public ImmutableEnumSet(Set<E> delegate) { argument 29 super(delegate);
|
H A D | ImmutableList.java | 43 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 D | ImmutableMap.java | 43 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 D | ImmutableSet.java | 43 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 D | ImmutableSortedMap.java | 68 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 D | ImmutableSortedSet.java | 130 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 D | LinkedHashMultimap.java | 167 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 D | Maps.java | 741 @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 D | Multimaps.java | 374 * @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 D | RegularImmutableBiMap.java | 32 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 D | RegularImmutableList.java | 27 RegularImmutableList(List<E> delegate) { argument 28 super(delegate);
|
H A D | RegularImmutableMap.java | 28 RegularImmutableMap(Map<? extends K, ? extends V> delegate) { argument 29 super(delegate);
|
H A D | RegularImmutableSet.java | 29 RegularImmutableSet(Set<E> delegate) { argument 30 super(delegate); 34 checkArgument(delegate.size() >= 2);
|
H A D | RegularImmutableSortedSet.java | 31 RegularImmutableSortedSet(SortedSet<E> delegate, boolean isSubset) { argument 32 super(delegate);
|
H A D | Sets.java | 1278 * 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 D | Synchronized.java | 56 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 D | NavigableMapTestSuiteBuilder.java | 112 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...] |