Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 57 for Split (0.14 sec)

  1. android/guava/src/com/google/common/net/HostAndPort.java

      public static HostAndPort fromHost(String host) {
        HostAndPort parsedHost = fromString(host);
        checkArgument(!parsedHost.hasPort(), "Host has a port: %s", host);
        return parsedHost;
      }
    
      /**
       * Split a freeform string into a host and port, without strict validation.
       *
       * <p>Note that the host-only formats will leave the port field undefined. You can use {@link
       * #withDefaultPort(int)} to patch in a default value.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Aug 22 20:55:57 GMT 2023
    - 11.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/net/HttpHeadersTest.java

        if (specialCases.containsKey(constantName)) {
          return specialCases.get(constantName);
        }
        List<String> parts = Lists.newArrayList();
        for (String part : SPLITTER.split(constantName)) {
          if (!uppercaseAcronyms.contains(part)) {
            part = part.charAt(0) + Ascii.toLowerCase(part.substring(1));
          }
          parts.add(part);
        }
        return JOINER.join(parts);
      }
    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)
  3. android/guava-tests/test/com/google/common/net/HttpHeadersTest.java

        if (specialCases.containsKey(constantName)) {
          return specialCases.get(constantName);
        }
        List<String> parts = Lists.newArrayList();
        for (String part : SPLITTER.split(constantName)) {
          if (!uppercaseAcronyms.contains(part)) {
            part = part.charAt(0) + Ascii.toLowerCase(part.substring(1));
          }
          parts.add(part);
        }
        return JOINER.join(parts);
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 22 21:08:08 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/escape/UnicodeEscaperTest.java

        final int s1 = min + (1 * range) / 4;
        final int s2 = min + (2 * range) / 4;
        final int s3 = min + (3 * range) / 4;
        final char[] dst = new char[12];
    
        // Put surrogate pairs at odd indices so they can be split easily
        dst[0] = 'x';
        Character.toChars(min, dst, 1);
        Character.toChars(s1, dst, 3);
        Character.toChars(s2, dst, 5);
        Character.toChars(s3, dst, 7);
        Character.toChars(max, dst, 9);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 6.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/ThreadFactoryBuilder.java

       * build again. State is not shared amongst built instances.
       *
       * @return the fully constructed {@link ThreadFactory}
       */
      public ThreadFactory build() {
        return doBuild(this);
      }
    
      // Split out so that the anonymous ThreadFactory can't contain a reference back to the builder.
      // At least, I assume that's why. TODO(cpovirk): Check, and maybe add a test for this.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 10 21:56:03 GMT 2023
    - 7.6K bytes
    - Viewed (0)
  6. guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java

        assertNotNull(ArbitraryInstances.get(Locale.class));
        assertNotNull(ArbitraryInstances.get(Joiner.class).join(ImmutableList.of("a")));
        assertNotNull(ArbitraryInstances.get(Splitter.class).split("a,b"));
        assertThat(ArbitraryInstances.get(com.google.common.base.Optional.class)).isAbsent();
        ArbitraryInstances.get(Stopwatch.class).start();
        assertNotNull(ArbitraryInstances.get(Ticker.class));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.1K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/PerCollectionSizeTestSuiteBuilder.java

        @SuppressWarnings("rawtypes") // class literals
        List<Class<? extends AbstractTester>> testers = getTesters();
    
        logger.fine(" Testing: " + name);
    
        // Split out all the specified sizes.
        Set<Feature<?>> sizesToTest = Helpers.<Feature<?>>copyToSet(CollectionSize.values());
        sizesToTest.retainAll(features);
        features.removeAll(sizesToTest);
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveAllTester.java

        assertTrue(collection.contains(e0()));
      }
    
      /*
       * AbstractCollection fails the removeAll(null) test when the subject
       * collection is empty, but we'd still like to test removeAll(null) when we
       * can. We split the test into empty and non-empty cases. This allows us to
       * suppress only the former.
       */
    
      @CollectionFeature.Require(SUPPORTS_REMOVE)
      @CollectionSize.Require(ZERO)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/io/BaseEncodingTest.java

            testEncoding(
                encoding.withSeparator(separator, sepLength),
                decoded,
                Joiner.on(separator).join(Splitter.fixedLength(sepLength).split(encoded)));
          }
        }
      }
    
      private static void testEncoding(BaseEncoding encoding, String decoded, String encoded) {
        testEncodes(encoding, decoded, encoded);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 06 12:56:11 GMT 2023
    - 24.6K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/CollectSpliterators.java

          }
    
          @Override
          @CheckForNull
          public Spliterator<T> trySplit() {
            Spliterator.OfInt split = delegate.trySplit();
            return (split == null) ? null : new WithCharacteristics(split);
          }
    
          @Override
          public long estimateSize() {
            return delegate.estimateSize();
          }
    
          @Override
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 15:21:23 GMT 2024
    - 19.8K bytes
    - Viewed (0)
Back to top