Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for trimResults (0.11 sec)

  1. guava-tests/test/com/google/common/base/SplitterTest.java

        tester.testAllPublicInstanceMethods(COMMA_SPLITTER);
        tester.testAllPublicInstanceMethods(COMMA_SPLITTER.trimResults());
      }
    
      public void testMapSplitter_trimmedBoth() {
        Map<String, String> m =
            COMMA_SPLITTER
                .trimResults()
                .withKeyValueSeparator(Splitter.on(':').trimResults())
                .split("boy  : tom , girl: tina , cat  : kitty , dog: tommy ");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 29.6K bytes
    - Viewed (0)
  2. guava/src/com/google/common/base/Splitter.java

       * substring; equivalent to {@code trimResults(CharMatcher.whitespace())}. For example, {@code
       * Splitter.on(',').trimResults().split(" a, b ,c ")} returns an iterable containing {@code ["a",
       * "b", "c"]}.
       *
       * @return a splitter with the desired configuration
       */
      public Splitter trimResults() {
        return trimResults(CharMatcher.whitespace());
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 21:14:05 UTC 2024
    - 24.5K bytes
    - Viewed (0)
Back to top