Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for Splitter (0.18 sec)

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

     * expression:
     *
     * <pre>{@code
     * Splitter.on(',').split(" foo,,,  bar ,")
     * }</pre>
     *
     * ... yields the substrings {@code [" foo", "", "", " bar ", ""]}. If this is not the desired
     * behavior, use configuration methods to obtain a <i>new</i> splitter instance with modified
     * behavior:
     *
     * <pre>{@code
     * private static final Splitter MY_SPLITTER = Splitter.on(',')
     *     .trimResults()
     *     .omitEmptyStrings();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/base/Splitter.java

     * expression:
     *
     * <pre>{@code
     * Splitter.on(',').split(" foo,,,  bar ,")
     * }</pre>
     *
     * ... yields the substrings {@code [" foo", "", "", " bar ", ""]}. If this is not the desired
     * behavior, use configuration methods to obtain a <i>new</i> splitter instance with modified
     * behavior:
     *
     * <pre>{@code
     * private static final Splitter MY_SPLITTER = Splitter.on(',')
     *     .trimResults()
     *     .omitEmptyStrings();
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 24.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/base/SplitterTest.java

      private static final Splitter COMMA_SPLITTER = Splitter.on(',');
    
      public void testSplitNullString() {
        try {
          COMMA_SPLITTER.split(null);
          fail();
        } catch (NullPointerException expected) {
        }
      }
    
      public void testCharacterSimpleSplit() {
        String simple = "a,b,c";
        Iterable<String> letters = COMMA_SPLITTER.split(simple);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/helper/PopularWordHelper.java

            buf.append(seed).append(CACHE_KEY_SPLITTER);
            stream(tags).of(stream -> stream.sorted().reduce((l, r) -> l + r).ifPresent(v -> buf.append(v)));
            buf.append(CACHE_KEY_SPLITTER);
            stream(roles).of(stream -> stream.sorted().reduce((l, r) -> l + r).ifPresent(v -> buf.append(v)));
            buf.append(CACHE_KEY_SPLITTER);
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  5. guava-tests/benchmark/com/google/common/base/SplitterBenchmark.java

      @BeforeExperiment
      void setUp() {
        input = Strings.repeat(text, length);
      }
    
      @Benchmark
      void charSplitter(int reps) {
        int total = 0;
    
        for (int i = 0; i < reps; i++) {
          total += Iterables.size(CHAR_SPLITTER.split(input));
        }
      }
    
      @Benchmark
      void stringSplitter(int reps) {
        int total = 0;
    
        for (int i = 0; i < reps; i++) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.7K bytes
    - Viewed (0)
  6. android/guava-tests/benchmark/com/google/common/base/SplitterBenchmark.java

      @BeforeExperiment
      void setUp() {
        input = Strings.repeat(text, length);
      }
    
      @Benchmark
      void charSplitter(int reps) {
        int total = 0;
    
        for (int i = 0; i < reps; i++) {
          total += Iterables.size(CHAR_SPLITTER.split(input));
        }
      }
    
      @Benchmark
      void stringSplitter(int reps) {
        int total = 0;
    
        for (int i = 0; i < reps; i++) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/base/SplitterTest.java

      private static final Splitter COMMA_SPLITTER = Splitter.on(',');
    
      public void testSplitNullString() {
        try {
          COMMA_SPLITTER.split(null);
          fail();
        } catch (NullPointerException expected) {
        }
      }
    
      public void testCharacterSimpleSplit() {
        String simple = "a,b,c";
        Iterable<String> letters = COMMA_SPLITTER.split(simple);
    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)
  8. android/guava/src/com/google/common/cache/CacheBuilderSpec.java

        void parse(CacheBuilderSpec spec, String key, @CheckForNull String value);
      }
    
      /** Splits each key-value pair. */
      private static final Splitter KEYS_SPLITTER = Splitter.on(',').trimResults();
    
      /** Splits the key from the value. */
      private static final Splitter KEY_VALUE_SPLITTER = Splitter.on('=').trimResults();
    
      /** Map of names to ValueParser. */
      private static final ImmutableMap<String, ValueParser> VALUE_PARSERS =
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Aug 22 14:27:44 GMT 2022
    - 18.1K bytes
    - Viewed (0)
  9. src/bufio/scan_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    }
    
    // Test that the line splitter handles a final line without a newline.
    func TestScanLineNoNewline(t *testing.T) {
    	const text = "abcdefghijklmn\nopqrstuvwxyz"
    	lines := []string{
    		"abcdefghijklmn",
    		"opqrstuvwxyz",
    	}
    	testNoNewline(text, lines, t)
    }
    
    // Test that the line splitter handles a final line with a carriage return but no newline.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Sep 22 16:22:42 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/net/HttpHeadersTest.java

           */
          if (!field.isSynthetic() && field.getType() == String.class) {
            builder.add(field);
          }
        }
        return builder.build();
      }
    
      private static final Splitter SPLITTER = Splitter.on('_');
      private static final Joiner JOINER = Joiner.on('-');
    
      private static String upperToHttpHeaderName(
          String constantName,
          ImmutableBiMap<String, String> specialCases,
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Jan 17 17:41:51 GMT 2023
    - 3.9K bytes
    - Viewed (0)
Back to top