Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 150 for naturally (0.04 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. guava/src/com/google/common/reflect/TypeResolver.java

     *
     * <p>Note that usually type mappings are already implied by the static type hierarchy (for example,
     * the {@code E} type variable declared by class {@code List} naturally maps to {@code String} in
     * the context of {@code class MyStringList implements List<String>}). In such case, prefer to use
     * {@link TypeToken#resolveType} since it's simpler and more type safe. This class should only be
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 23 22:30:05 GMT 2025
    - 25.3K bytes
    - Click Count (0)
  2. cmd/common-main.go

    					domainIPs.Add(addr)
    				}
    			}
    			domainIPs.Add(endpoint)
    		}
    		updateDomainIPs(domainIPs)
    	} else {
    		// Add found interfaces IP address to global domain IPS,
    		// loopback addresses will be naturally dropped.
    		domainIPs := mustGetLocalIP4()
    		for _, host := range globalEndpoints.Hostnames() {
    			domainIPs.Add(host)
    		}
    		updateDomainIPs(domainIPs)
    	}
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 32.5K bytes
    - Click Count (3)
  3. android/guava/src/com/google/common/base/Converter.java

     * requirement that existing callers already fulfill).
     *
     * Disclaimer: Part of the reason that callers are so well adapted to `Function<A, B>` may be that
     * that is how the signature looked even prior to this comment! So naturally any change can break
     * existing users, but it can't *fix* existing users because any users who needed
     * `Function<@Nullable A, @Nullable B>` already had to find a workaround. Still, there is a *ton* of
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Jun 18 21:43:06 GMT 2025
    - 22.8K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/collect/Iterables.java

      }
    
      /**
       * Returns the first element in {@code iterable} that satisfies the given predicate, or {@code
       * defaultValue} if none found. Note that this can usually be handled more naturally using {@code
       * tryFind(iterable, predicate).or(defaultValue)}.
       *
       * <p><b>{@code Stream} equivalent:</b> {@code
       * stream.filter(predicate).findFirst().orElse(defaultValue)}
       *
       * @since 7.0
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 16 18:35:28 GMT 2025
    - 43.8K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

       */
      private static final Comparator<?> NATURAL_ORDER = Ordering.natural();
    
      private static final ImmutableSortedMap<Comparable<?>, Object> NATURAL_EMPTY_MAP =
          new ImmutableSortedMap<>(ImmutableSortedSet.emptySet(Ordering.natural()), ImmutableList.of());
    
      static <K, V> ImmutableSortedMap<K, V> emptyMap(Comparator<? super K> comparator) {
        if (Ordering.natural().equals(comparator)) {
          return of();
        } else {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 21:07:18 GMT 2025
    - 52.9K bytes
    - Click Count (0)
  6. src/bytes/bytes.go

    func Map(mapping func(r rune) rune, s []byte) []byte {
    	// In the worst case, the slice can grow when mapped, making
    	// things unpleasant. But it's so rare we barge in assuming it's
    	// fine. It could also shrink but that falls out naturally.
    	b := make([]byte, 0, len(s))
    	for i := 0; i < len(s); {
    		r, wid := utf8.DecodeRune(s[i:])
    		r = mapping(r)
    		if r >= 0 {
    			b = utf8.AppendRune(b, r)
    		}
    		i += wid
    	}
    	return b
    }
    
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Tue Sep 16 16:42:15 GMT 2025
    - 35.5K bytes
    - Click Count (0)
  7. guava/src/com/google/common/collect/Iterators.java

       * element is found, {@code defaultValue} will be returned from this method and the iterator will
       * be left exhausted: its {@code hasNext()} method will return {@code false}. Note that this can
       * usually be handled more naturally using {@code tryFind(iterator, predicate).or(defaultValue)}.
       *
       * @since 7.0
       */
      // For discussion of this signature, see the corresponding overload of *Iterables*.find.
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 16 12:42:11 GMT 2025
    - 51.4K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/graph/ElementOrderTest.java

      }
    
      @Test
      public void nodeOrder_natural() {
        MutableGraph<Integer> graph =
            GraphBuilder.directed().nodeOrder(ElementOrder.<Integer>natural()).build();
    
        addNodes(graph);
    
        assertThat(graph.nodeOrder()).isEqualTo(ElementOrder.sorted(Ordering.<Integer>natural()));
        assertThat(graph.nodes()).containsExactly(1, 3, 4).inOrder();
      }
    
      @Test
      public void nodeOrder_sorted() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 8.1K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/collect/ComparatorsTest.java

        assertTrue(isInOrder(ImmutableList.of(), Ordering.natural()));
      }
    
      public void testIsInStrictOrder() {
        assertFalse(isInStrictOrder(asList(5, 3, 0, 9), Ordering.natural()));
        assertFalse(isInStrictOrder(asList(0, 5, 3, 9), Ordering.natural()));
        assertTrue(isInStrictOrder(asList(0, 3, 5, 9), Ordering.natural()));
        assertFalse(isInStrictOrder(asList(0, 0, 3, 3), Ordering.natural()));
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Apr 12 15:07:59 GMT 2025
    - 6.4K bytes
    - Click Count (0)
  10. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedSet.java

      }
    
      public static <E extends Comparable<? super E>> ImmutableSortedSet<E> of(E e1) {
        return ofInternal(Ordering.natural(), e1);
      }
    
      @SuppressWarnings("unchecked")
      public static <E extends Comparable<? super E>> ImmutableSortedSet<E> of(E e1, E e2) {
        return ofInternal(Ordering.natural(), e1, e2);
      }
    
      @SuppressWarnings("unchecked")
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Aug 06 18:32:41 GMT 2025
    - 15.5K bytes
    - Click Count (0)
Back to Top