Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for LEADING (0.15 sec)

  1. android/guava-tests/benchmark/com/google/common/base/JoinerBenchmark.java

        }
        return dummy;
      }
    
      /**
       * Only appends delimiter if the accumulated string is non-empty. Note: this isn't a candidate
       * implementation for Joiner since it fails on leading empty components.
       */
      @Benchmark
      int stringBuilderIsEmpty(int reps) {
        int dummy = 0;
        for (int i = 0; i < reps; i++) {
          StringBuilder sb = new StringBuilder();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/EnumBiMapTest.java

        assertEquals(Country.class, bimap.valueType());
      }
    
      public void testIterationOrder() {
        // The enum orderings are alphabetical, leading to the bimap and its inverse
        // having inconsistent iteration orderings.
        Map<Currency, Country> map =
            ImmutableMap.of(
                Currency.DOLLAR, Country.CANADA,
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 26 16:35:21 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/EnumBiMapTest.java

        assertEquals(Country.class, bimap.valueType());
      }
    
      public void testIterationOrder() {
        // The enum orderings are alphabetical, leading to the bimap and its inverse
        // having inconsistent iteration orderings.
        Map<Currency, Country> map =
            ImmutableMap.of(
                Currency.DOLLAR, Country.CANADA,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 16:35:21 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/base/SplitterTest.java

        assertThat(letters).containsExactly("a", "b", "c", "").inOrder();
      }
    
      public void testCharacterSplitWithLeadingDelimiter() {
        String leading = ",a,b,c";
        Iterable<String> letters = COMMA_SPLITTER.split(leading);
        assertThat(letters).containsExactly("", "a", "b", "c").inOrder();
      }
    
      public void testCharacterSplitWithMultipleLetters() {
        Iterable<String> testCharacteringMotto =
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 29.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/Utf8.java

          if (byte1 < (byte) 0xE0) {
            // Two-byte form.
            if (index == end) {
              return false;
            }
            // Simultaneously check for illegal trailing-byte in leading position
            // and overlong 2-byte form.
            if (byte1 < (byte) 0xC2 || bytes[index++] > (byte) 0xBF) {
              return false;
            }
          } else if (byte1 < (byte) 0xF0) {
            // Three-byte form.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 10 14:11:51 GMT 2023
    - 7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/base/SplitterTest.java

        assertThat(letters).containsExactly("a", "b", "c", "").inOrder();
      }
    
      public void testCharacterSplitWithLeadingDelimiter() {
        String leading = ",a,b,c";
        Iterable<String> letters = COMMA_SPLITTER.split(leading);
        assertThat(letters).containsExactly("", "a", "b", "c").inOrder();
      }
    
      public void testCharacterSplitWithMultipleLetters() {
        Iterable<String> testCharacteringMotto =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/io/Resources.java

        return asCharSource(url, charset).readLines(callback);
      }
    
      /**
       * Reads all of the lines from a URL. The lines do not include line-termination characters, but do
       * include other leading and trailing whitespace.
       *
       * <p>This method returns a mutable {@code List}. For an {@code ImmutableList}, use {@code
       * Resources.asCharSource(url, charset).readLines()}.
       *
       * @param url the URL to read from
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 7.4K bytes
    - Viewed (0)
  8. guava-tests/benchmark/com/google/common/base/JoinerBenchmark.java

        }
        return dummy;
      }
    
      /**
       * Only appends delimiter if the accumulated string is non-empty. Note: this isn't a candidate
       * implementation for Joiner since it fails on leading empty components.
       */
      @Benchmark
      int stringBuilderIsEmpty(int reps) {
        int dummy = 0;
        for (int i = 0; i < reps; i++) {
          StringBuilder sb = new StringBuilder();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/AggregateFutureState.java

         * seenExceptions to its exception
         *
         * Thread2: calls setException(), which returns false, CASes seenExceptions to its exception,
         * and wrongly believes that its exception is new (leading it to logging it when it shouldn't)
         *
         * Our solution is for threads to CAS seenExceptions from null to a Set populated with _the
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 14 20:35:03 GMT 2023
    - 8.5K bytes
    - Viewed (0)
  10. guava/src/com/google/common/base/Utf8.java

          if (byte1 < (byte) 0xE0) {
            // Two-byte form.
            if (index == end) {
              return false;
            }
            // Simultaneously check for illegal trailing-byte in leading position
            // and overlong 2-byte form.
            if (byte1 < (byte) 0xC2 || bytes[index++] > (byte) 0xBF) {
              return false;
            }
          } else if (byte1 < (byte) 0xF0) {
            // Three-byte form.
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 10 14:11:51 GMT 2023
    - 7K bytes
    - Viewed (0)
Back to top