Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for getFirst (0.16 sec)

  1. compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/reflection/MethodMap.java

            if (applicables.isEmpty()) {
                return null;
            }
    
            if (applicables.size() == 1) {
                return applicables.getFirst();
            }
    
            // This list will contain the maximally specific methods. Hopefully at
            // the end of the below loop, the list will contain exactly one method,
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/IterablesTest.java

        assertEquals("foo", Iterables.getFirst(iterable, "bar"));
      }
    
      public void testGetFirst_withDefault_empty() {
        Iterable<String> iterable = emptyList();
        assertEquals("bar", Iterables.getFirst(iterable, "bar"));
      }
    
      public void testGetFirst_withDefault_empty_null() {
        Iterable<String> iterable = emptyList();
        assertNull(Iterables.<@Nullable String>getFirst(iterable, null));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 19:12:33 UTC 2024
    - 45K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/crawler/transformer/FessXpathTransformerTest.java

                protected Map<String, String> getConfigPrameterMap(final ResponseData responseData, final ConfigName config) {
                    return Map.of();
                }
            }.getChildUrlRules(null, null).map(v -> v.getFirst() + ":" + v.getSecond()).collect(Collectors.joining(",")));
            assertEquals("//A:href", new FessXpathTransformer() {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Oct 24 13:01:38 UTC 2024
    - 41.3K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ImmutableSortedSet.java

      /** @since 12.0 */
      @Override
      @CheckForNull
      public E ceiling(E e) {
        return Iterables.<@Nullable E>getFirst(tailSet(e, true), null);
      }
    
      /** @since 12.0 */
      @GwtIncompatible // NavigableSet
      @Override
      @CheckForNull
      public E higher(E e) {
        return Iterables.<@Nullable E>getFirst(tailSet(e, false), null);
      }
    
      @Override
      public E first() {
        return iterator().next();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.1K bytes
    - Viewed (0)
  5. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/HtmlTransformer.java

                getChildUrlRules(responseData, resultData).forEach(entry -> {
                    List<RequestData> requestDataList = new ArrayList<>();
                    for (final String childUrl : getUrlFromTagAttribute(url, document, entry.getFirst(), entry.getSecond(),
                            responseData.getCharSet())) {
                        requestDataList.add(RequestDataBuilder.newRequestData().get().url(childUrl).build());
                    }
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Oct 24 12:16:00 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

      /** @since 12.0 */
      @Override
      @CheckForNull
      public E ceiling(E e) {
        return Iterables.<@Nullable E>getFirst(tailSet(e, true), null);
      }
    
      /** @since 12.0 */
      @GwtIncompatible // NavigableSet
      @Override
      @CheckForNull
      public E higher(E e) {
        return Iterables.<@Nullable E>getFirst(tailSet(e, false), null);
      }
    
      @Override
      public E first() {
        return iterator().next();
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  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