Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 105 for getFirst (0.15 sec)

  1. android/guava/src/com/google/common/collect/Synchronized.java

        @CheckForNull
        public E pollLast() {
          synchronized (mutex) {
            return delegate().pollLast();
          }
        }
    
        @Override
        public E getFirst() {
          synchronized (mutex) {
            return delegate().getFirst();
          }
        }
    
        @Override
        public E getLast() {
          synchronized (mutex) {
            return delegate().getLast();
          }
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 53.4K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/Synchronized.java

        @CheckForNull
        public E pollLast() {
          synchronized (mutex) {
            return delegate().pollLast();
          }
        }
    
        @Override
        public E getFirst() {
          synchronized (mutex) {
            return delegate().getFirst();
          }
        }
    
        @Override
        public E getLast() {
          synchronized (mutex) {
            return delegate().getLast();
          }
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 57.2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Iterables.java

       * @return the first element of {@code iterable} or the default value
       * @since 7.0
       */
      @ParametricNullness
      public static <T extends @Nullable Object> T getFirst(
          Iterable<? extends T> iterable, @ParametricNullness T defaultValue) {
        return Iterators.getNext(iterable.iterator(), defaultValue);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 24 19:38:27 UTC 2024
    - 42.8K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/HcHttpClient.java

                        logger.warn("DefaultHttpClient does not have {}.", propertyName);
                    }
                }
            }
    
            formSchemeList.forEach(p -> {
                final FormScheme scheme = p.getFirst();
                final Credentials credentials = p.getSecond();
                scheme.authenticate(credentials, (request, consumer) -> {
    
                    // request header
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu May 09 09:29:26 UTC 2024
    - 41K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/MapMakerInternalMap.java

        <T> void clearReferenceQueue(ReferenceQueue<T> referenceQueue) {
          while (referenceQueue.poll() != null) {}
        }
    
        /** Returns first entry of bin for given hash. */
        @CheckForNull
        E getFirst(int hash) {
          // read this volatile field only once
          AtomicReferenceArray<E> table = this.table;
          return table.get(hash & (table.length() - 1));
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 90.8K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

        <T> void clearReferenceQueue(ReferenceQueue<T> referenceQueue) {
          while (referenceQueue.poll() != null) {}
        }
    
        /** Returns first entry of bin for given hash. */
        @CheckForNull
        E getFirst(int hash) {
          // read this volatile field only once
          AtomicReferenceArray<E> table = this.table;
          return table.get(hash & (table.length() - 1));
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 90.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Iterators.java

        }
      }
    
      /**
       * Returns the next element in {@code iterator} or {@code defaultValue} if the iterator is empty.
       * The {@link Iterables} analog to this method is {@link Iterables#getFirst}.
       *
       * @param defaultValue the default value to return if the iterator is empty
       * @return the next element of {@code iterator} or the default value
       * @since 7.0
       */
      @ParametricNullness
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 50.3K bytes
    - Viewed (0)
  8. guava/src/com/google/common/cache/LocalCache.java

            if (weight > 0) {
              return e;
            }
          }
          throw new AssertionError();
        }
    
        /** Returns first entry of bin for given hash. */
        ReferenceEntry<K, V> getFirst(int hash) {
          // read this volatile field only once
          AtomicReferenceArray<ReferenceEntry<K, V>> table = this.table;
          return table.get(hash & (table.length() - 1));
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 149.2K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/testers/ListAddAllAtIndexTester.java

            "addAll(n, allPresent) should return true",
            getList().addAll(0, MinimalCollection.of(e0())));
        expectAdded(0, e0());
      }
    
      @ListFeature.Require(absent = SUPPORTS_ADD_WITH_INDEX)
      @CollectionSize.Require(absent = ZERO)
      public void testAddAllAtIndex_unsupportedAllPresent() {
        assertThrows(
            UnsupportedOperationException.class, () -> getList().addAll(0, MinimalCollection.of(e0())));
        expectUnchanged();
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 20:00:30 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/testers/ListAddAtIndexTester.java

       */
      public void testAddAtIndex_unsupportedPresent() {
        assertThrows(UnsupportedOperationException.class, () -> getList().add(0, e0()));
        expectUnchanged();
      }
    
      @ListFeature.Require(SUPPORTS_ADD_WITH_INDEX)
      public void testAddAtIndex_supportedNotPresent() {
        getList().add(0, e3());
        expectAdded(0, e3());
      }
    
      @CollectionFeature.Require(FAILS_FAST_ON_CONCURRENT_MODIFICATION)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 5.4K bytes
    - Viewed (0)
Back to top