Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for omitEmptyStrings (0.1 sec)

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

        assertThat(Splitter.on(".").omitEmptyStrings().split("")).isEmpty();
      }
    
      public void testStringSplitOnOnlyDelimiter() {
        Iterable<String> blankblank = Splitter.on(".").split(".");
        assertThat(blankblank).containsExactly("", "").inOrder();
      }
    
      public void testStringSplitOnOnlyDelimitersOmitEmptyStrings() {
        Iterable<String> empty = Splitter.on(".").omitEmptyStrings().split("...");
    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

      private final boolean omitEmptyStrings;
      private final Strategy strategy;
      private final int limit;
    
      private Splitter(Strategy strategy) {
        this(strategy, false, CharMatcher.none(), Integer.MAX_VALUE);
      }
    
      private Splitter(Strategy strategy, boolean omitEmptyStrings, CharMatcher trimmer, int limit) {
        this.strategy = strategy;
        this.omitEmptyStrings = omitEmptyStrings;
    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