Search Options

Results per page
Sort
Preferred Languages
Advance

Results 441 - 450 of 581 for way (0.06 sec)

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

        ImmutableList<String> result = builder.build();
    
        /*
         * Maybe it rejects all elements, or maybe it adds "a" before failing.
         * Either way is fine with us.
         */
        if (result.isEmpty()) {
          return;
        }
        assertTrue(ImmutableList.of("a").equals(result));
        assertEquals(1, result.size());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/Ordering.java

       *
       * <p><b>Java 8+ users:</b> use {@link Comparator#naturalOrder} instead.
       */
      @GwtCompatible(serializable = true)
      @SuppressWarnings({"unchecked", "rawtypes"})
      // TODO(kevinb): right way to explain this??
      // plus https://github.com/google/guava/issues/989
      public static <C extends Comparable> Ordering<C> natural() {
        return (Ordering<C>) NaturalOrdering.INSTANCE;
      }
    
      // Static factories
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Tables.java

       * instance, {@code rowKeySet().iterator()} supports {@code remove()} but {@code
       * columnKeySet().iterator()} doesn't. With a transposed {@link HashBasedTable}, it's the other
       * way around.
       */
      public static <R extends @Nullable Object, C extends @Nullable Object, V extends @Nullable Object>
          Table<C, R, V> transpose(Table<R, C, V> table) {
        return (table instanceof TransposeTable)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  4. guava/src/com/google/common/io/CharSource.java

       * the default implementation of this method will ensure that the original {@code CharSource} is
       * returned, rather than round-trip encoding. Subclasses that override this method should behave
       * the same way.
       *
       * @since 20.0
       */
      public ByteSource asByteSource(Charset charset) {
        return new AsByteSource(charset);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/math/IntMathTest.java

        assertEquals(expectedMean, IntMath.mean(x, y));
        assertEquals(
            "The mean of x and y should equal the mean of y and x", expectedMean, IntMath.mean(y, x));
      }
    
      /**
       * Computes the mean in a way that is obvious and resilient to overflow by using BigInteger
       * arithmetic.
       */
      private static int computeMeanSafely(int x, int y) {
        BigInteger bigX = BigInteger.valueOf(x);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/io/BaseEncodingTest.java

      private static void assertFailsToDecode(
          BaseEncoding encoding, String cannotDecode, @Nullable String expectedMessage) {
        // We use this somewhat weird pattern with an enum for each assertion we want to make as a way
        // of dealing with the fact that one of the assertions is @GwtIncompatible but we don't want to
        // have to have duplicate @GwtIncompatible test methods just to make that assertion.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 16:27:30 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/util/concurrent/Futures.java

      // way in such a visibility issue would surface is most likely as a failure of cancel() to
      // propagate to the input. Cancellation propagation is fundamentally racy so this is fine.
      //
      // Future versions of the JMM may revise safe construction semantics in such a way that we can
      // safely publish these objects and we won't need this whole discussion.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 13:13:32 UTC 2024
    - 64.4K bytes
    - Viewed (0)
  8. cmd/object-api-utils.go

    	if !ok {
    		// md5Sum tag is kept for backward compatibility.
    		etag = metadata["md5Sum"]
    	}
    	// Success.
    	return etag
    }
    
    // HasPrefix - Prefix matcher string matches prefix in a platform specific way.
    // For example on windows since its case insensitive we are supposed
    // to do case insensitive checks.
    func HasPrefix(s string, prefix string) bool {
    	if runtime.GOOS == globalWindowsOSName {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 37.1K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/ImmutableListTest.java

        ImmutableList<String> result = builder.build();
    
        /*
         * Maybe it rejects all elements, or maybe it adds "a" before failing.
         * Either way is fine with us.
         */
        if (result.isEmpty()) {
          return;
        }
        assertTrue(ImmutableList.of("a").equals(result));
        assertEquals(1, result.size());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  10. architecture/ambient/ztunnel.md

    1. If the destination is on our node, we "fast path" the request and convert this into an inbound request.
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Jul 17 23:10:17 UTC 2024
    - 16.8K bytes
    - Viewed (0)
Back to top