Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for omitEmptyStrings (0.13 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)
  3. android/guava/src/com/google/common/reflect/ClassPath.java

      /** Separator for the Class-Path manifest attribute value in jar files. */
      private static final Splitter CLASS_PATH_ATTRIBUTE_SEPARATOR =
          Splitter.on(" ").omitEmptyStrings();
    
      private static final String CLASS_FILE_NAME_EXTENSION = ".class";
    
      private final ImmutableSet<ResourceInfo> resources;
    
      private ClassPath(ImmutableSet<ResourceInfo> resources) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jan 05 17:43:40 UTC 2022
    - 24.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/io/Files.java

        checkNotNull(pathname);
        if (pathname.length() == 0) {
          return ".";
        }
    
        // split the path apart
        Iterable<String> components = Splitter.on('/').omitEmptyStrings().split(pathname);
        List<String> path = new ArrayList<>();
    
        // resolve ., .., and //
        for (String component : components) {
          switch (component) {
            case ".":
              continue;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jul 22 19:03:12 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  5. guava/src/com/google/common/io/Files.java

        checkNotNull(pathname);
        if (pathname.length() == 0) {
          return ".";
        }
    
        // split the path apart
        Iterable<String> components = Splitter.on('/').omitEmptyStrings().split(pathname);
        List<String> path = new ArrayList<>();
    
        // resolve ., .., and //
        for (String component : components) {
          switch (component) {
            case ".":
              continue;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jul 22 19:03:12 UTC 2024
    - 33.1K bytes
    - Viewed (0)
Back to top