Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 1,332 for delegate (0.07 sec)

  1. android/guava-tests/test/com/google/common/collect/ForwardingMultimapTest.java

            .addEqualityGroup(map2, wrap(map2))
            .testEquals();
      }
    
      private static <K, V> Multimap<K, V> wrap(final Multimap<K, V> delegate) {
        return new ForwardingMultimap<K, V>() {
          @Override
          protected Multimap<K, V> delegate() {
            return delegate;
          }
        };
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 20:09:59 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/AbstractBiMap.java

      }
    
      class BiMapEntry extends ForwardingMapEntry<K, V> {
        private final Entry<K, V> delegate;
    
        BiMapEntry(Entry<K, V> delegate) {
          this.delegate = delegate;
        }
    
        @Override
        protected Entry<K, V> delegate() {
          return delegate;
        }
    
        @Override
        public V setValue(V value) {
          checkValue(value);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Aug 24 01:40:03 UTC 2023
    - 14.6K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/ForwardingSortedMapImplementsMapTest.java

      private static class SimpleForwardingSortedMap<K, V> extends ForwardingSortedMap<K, V> {
        final SortedMap<K, V> delegate;
    
        SimpleForwardingSortedMap(SortedMap<K, V> delegate) {
          this.delegate = delegate;
        }
    
        @Override
        protected SortedMap<K, V> delegate() {
          return delegate;
        }
      }
    
      public ForwardingSortedMapImplementsMapTest() {
        super(true, true, true, true, true);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Mar 07 18:34:03 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ForwardingQueue.java

      @Override
      protected abstract Queue<E> delegate();
    
      @CanIgnoreReturnValue // TODO(cpovirk): Consider removing this?
      @Override
      public boolean offer(@ParametricNullness E o) {
        return delegate().offer(o);
      }
    
      @CanIgnoreReturnValue // TODO(cpovirk): Consider removing this?
      @Override
      @CheckForNull
      public E poll() {
        return delegate().poll();
      }
    
      @CanIgnoreReturnValue
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 29 19:42:21 UTC 2021
    - 4.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ForwardingSortedSetMultimap.java

      protected ForwardingSortedSetMultimap() {}
    
      @Override
      protected abstract SortedSetMultimap<K, V> delegate();
    
      @Override
      public SortedSet<V> get(@ParametricNullness K key) {
        return delegate().get(key);
      }
    
      @Override
      public SortedSet<V> removeAll(@CheckForNull Object key) {
        return delegate().removeAll(key);
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 15 21:08:00 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ForwardingSortedSet.java

      @Override
      protected abstract SortedSet<E> delegate();
    
      @Override
      @CheckForNull
      public Comparator<? super E> comparator() {
        return delegate().comparator();
      }
    
      @Override
      @ParametricNullness
      public E first() {
        return delegate().first();
      }
    
      @Override
      public SortedSet<E> headSet(@ParametricNullness E toElement) {
        return delegate().headSet(toElement);
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 15:26:39 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/TimeoutFuture.java

      static <V extends @Nullable Object> ListenableFuture<V> create(
          ListenableFuture<V> delegate,
          long time,
          TimeUnit unit,
          ScheduledExecutorService scheduledExecutor) {
        TimeoutFuture<V> result = new TimeoutFuture<>(delegate);
        Fire<V> fire = new Fire<>(result);
        result.timer = scheduledExecutor.schedule(fire, time, unit);
        delegate.addListener(fire, directExecutor());
        return result;
      }
    
      /*
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 13:13:32 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ForwardingConcurrentMap.java

      @Override
      protected abstract ConcurrentMap<K, V> delegate();
    
      @CanIgnoreReturnValue
      @Override
      @CheckForNull
      public V putIfAbsent(K key, V value) {
        return delegate().putIfAbsent(key, value);
      }
    
      @CanIgnoreReturnValue
      @Override
      public boolean remove(@CheckForNull Object key, @CheckForNull Object value) {
        return delegate().remove(key, value);
      }
    
      @CanIgnoreReturnValue
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 29 19:42:21 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/cache/FaultHidingSink.kt

    import okio.Buffer
    import okio.ForwardingSink
    import okio.Sink
    
    /** A sink that never throws IOExceptions, even if the underlying sink does. */
    internal open class FaultHidingSink(
      delegate: Sink,
      val onException: (IOException) -> Unit,
    ) : ForwardingSink(delegate) {
      private var hasErrors = false
    
      override fun write(
        source: Buffer,
        byteCount: Long,
      ) {
        if (hasErrors) {
          source.skip(byteCount)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/SafeTreeMap.java

        this(new TreeMap<K, V>(map));
      }
    
      private SafeTreeMap(NavigableMap<K, V> delegate) {
        this.delegate = delegate;
        if (delegate == null) {
          throw new NullPointerException();
        }
        for (K k : keySet()) {
          checkValid(k);
        }
      }
    
      @Override
      public @Nullable Entry<K, V> ceilingEntry(K key) {
        return delegate.ceilingEntry(checkValid(key));
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 7.5K bytes
    - Viewed (0)
Back to top