Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 51 for ending2 (0.51 sec)

  1. android/guava/src/com/google/common/base/Preconditions.java

       * size}, inclusive.
       *
       * @param start a user-supplied index identifying a starting position in an array, list or string
       * @param end a user-supplied index identifying an ending position in an array, list or string
       * @param size the size of that array, list or string
       * @throws IndexOutOfBoundsException if either index is negative or is greater than {@code size},
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 11 11:52:14 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/LineBufferTest.java

        bufferHelper("three\rlines\rno newline at end", "three\r", "lines\r", "no newline at end");
        bufferHelper("mixed\nline\rendings\r\n", "mixed\n", "line\r", "endings\r\n");
      }
    
      private static final int[] CHUNK_SIZES = {1, 2, 3, Integer.MAX_VALUE};
    
      private static void bufferHelper(String input, String... expect) throws IOException {
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.7K bytes
    - Viewed (0)
  3. guava-gwt/test-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/TestPlatform.java

          assertThat(e).hasMessageThat().isEqualTo("Cannot get() on a pending future.");
        }
      }
    
      static void verifyTimedGetOnPendingFuture(Future<?> future) {
        try {
          future.get(0, SECONDS);
          fail();
        } catch (Exception e) {
          assertThat(e).isInstanceOf(IllegalStateException.class);
          assertThat(e).hasMessageThat().isEqualTo("Cannot get() on a pending future.");
        }
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Nov 26 19:19:13 GMT 2018
    - 2.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/base/ToStringHelperTest.java

        assertEquals("FooBar{}", toTest);
      }
    
      @GwtIncompatible // Class names are obfuscated in GWT
      public void testToStringHelper_localInnerClass() {
        // Local inner classes have names ending like "Outer.$1Inner"
        class LocalInnerClass {}
        String toTest = MoreObjects.toStringHelper(new LocalInnerClass()).toString();
        assertEquals("LocalInnerClass{}", toTest);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:24:55 GMT 2024
    - 15.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

        AbstractFuture<Object> testFuture3 = new AbstractFuture<Object>() {};
        testFuture3.setFuture(testFuture2);
        assertThat(testFuture3.toString())
            .matches(
                "[^\\[]+\\[status=PENDING, setFuture=\\[[^\\[]+\\[status=PENDING,"
                    + " info=\\[cause=\\[Someday...]]]]]");
        testFuture2.set("result string");
        assertThat(testFuture3.toString())
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 46.8K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/cache/Cache.java

       *
       * <p>Among the improvements that this method and {@code LoadingCache.get(K)} both provide are:
       *
       * <ul>
       *   <li>{@linkplain LoadingCache#get(Object) awaiting the result of a pending load} rather than
       *       starting a redundant one
       *   <li>eliminating the error-prone caching boilerplate
       *   <li>tracking load {@linkplain #stats statistics}
       * </ul>
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sun Aug 07 02:38:22 GMT 2022
    - 8.3K bytes
    - Viewed (0)
  7. guava/src/com/google/common/cache/ReferenceEntry.java

    /**
     * An entry in a reference map.
     *
     * <p>Entries in the map can be in the following states:
     *
     * <p>Valid:
     *
     * <ul>
     *   <li>Live: valid key/value are set
     *   <li>Loading: loading is pending
     * </ul>
     *
     * <p>Invalid:
     *
     * <ul>
     *   <li>Expired: time expired (key/value may still be set)
     *   <li>Collected: key/value was partially collected, but not yet cleaned up
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jun 15 18:00:07 GMT 2021
    - 3.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/math/DoubleUtils.java

        return longBitsToDouble(significand | ONE_BITS);
      }
    
      static double bigToDouble(BigInteger x) {
        // This is an extremely fast implementation of BigInteger.doubleValue(). JDK patch pending.
        BigInteger absX = x.abs();
        int exponent = absX.bitLength() - 1;
        // exponent == floor(log2(abs(x)))
        if (exponent < Long.SIZE - 1) {
          return x.longValue();
        } else if (exponent > MAX_EXPONENT) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 28 15:37:52 GMT 2021
    - 5.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

       * implementation. Using a reconstruction of the default Object.toString() prevents OOMs and stack
       * overflows, and helps avoid sensitive data inadvertently ending up in exception messages.
       */
      private void appendResultObject(StringBuilder builder, @CheckForNull Object o) {
        if (o == null) {
          builder.append("null");
        } else if (o == this) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

                "CombinedFuture@\\w+\\[status=PENDING,"
                    + " info=\\[futures=\\[SettableFuture@\\w+\\[status=PENDING],"
                    + " SettableFuture@\\w+\\[status=PENDING]]]]");
        Integer integerPartial = 1;
        futureInteger.set(integerPartial);
        assertThat(futureResult.toString())
            .matches(
                "CombinedFuture@\\w+\\[status=PENDING,"
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
Back to top