Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,419 for tstring (0.27 sec)

  1. guava/src/com/google/common/base/Strings.java

       *
       * @param string a string reference to check
       * @return {@code true} if the string is null or is the empty string
       */
      public static boolean isNullOrEmpty(@CheckForNull String string) {
        return Platform.stringIsNullOrEmpty(string);
      }
    
      /**
       * Returns a string, of length at least {@code minLength}, consisting of {@code string} prepended
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Sep 17 20:47:03 GMT 2021
    - 12.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/ToStringHelperTest.java

            ImmutableMap.<String, Integer>builder().put("abc", 1).put("def", 2).put("ghi", 3).build();
        String toTest =
            MoreObjects.toStringHelper(new TestClass())
                .add("field1", "This is string.")
                .add("field2", Arrays.asList("abc", "def", "ghi"))
                .add("field3", map)
                .toString();
        final String expected =
            "TestClass{"
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:24:55 GMT 2024
    - 15.6K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/CacheReferencesTest.java

      }
    
      // A simple type whose .toString() will return the same value each time, but without maintaining
      // a strong reference to that value.
      static class Key {
        private final int value;
        private WeakReference<String> toString;
    
        Key(int value) {
          this.value = value;
        }
    
        @Override
        public synchronized String toString() {
          String s;
          if (toString != null) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 6.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

        String knownOutput = "8cbf764cbe2e4623d99a41354adfd390";
    
        Mac mac = Mac.getInstance("HmacMD5");
        mac.init(SHA1_KEY);
        assertEquals(knownOutput, HashCode.fromBytes(mac.doFinal()).toString());
        assertEquals(knownOutput, Hashing.hmacMd5(SHA1_KEY).newHasher().hash().toString());
      }
    
      public void testKnownInputs() throws Exception {
        String knownOutput = "9753980fe94daa8ecaa82216519393a9";
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/hash/MessageDigestHashFunction.java

      private final String toString;
    
      MessageDigestHashFunction(String algorithmName, String toString) {
        this.prototype = getMessageDigest(algorithmName);
        this.bytes = prototype.getDigestLength();
        this.toString = checkNotNull(toString);
        this.supportsClone = supportsClone(prototype);
      }
    
      MessageDigestHashFunction(String algorithmName, int bytes, String toString) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 25 20:32:46 GMT 2022
    - 5K bytes
    - Viewed (0)
  6. android/guava-testlib/test/com/google/common/testing/anotherpackage/ForwardingWrapperTesterTest.java

          return arithmetic.add(a, b);
        }
    
        @Override
        public String toString() {
          return arithmetic.toString();
        }
      }
    
      private interface ParameterTypesDifferent {
        void foo(
            String s,
            Runnable r,
            Number n,
            Iterable<?> it,
            boolean b,
            Equivalence<String> eq,
            Exception e,
            InputStream in,
            Comparable<?> c,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 15.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/base/Joiner.java

       *
       * @since 11.0
       */
      public final String join(Iterator<? extends @Nullable Object> parts) {
        return appendTo(new StringBuilder(), parts).toString();
      }
    
      /**
       * Returns a string containing the string representation of each of {@code parts}, using the
       * previously configured separator between each.
       */
      public final String join(@Nullable Object[] parts) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 18.6K bytes
    - Viewed (0)
  8. android/guava-tests/benchmark/com/google/common/base/JoinerBenchmark.java

      @Param({"0", "1", "16", "32", "100"})
      int componentLength;
    
      private Iterable<String> components;
    
      @BeforeExperiment
      void setUp() {
        String component = Strings.repeat("a", componentLength);
        String[] raw = new String[count];
        Arrays.fill(raw, component);
        components = Arrays.asList(raw);
      }
    
      /** {@link Joiner} with a string delimiter. */
      @Benchmark
      int joinerWithStringDelimiter(int reps) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.9K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/net/InternetDomainNameTest.java

      /** The Greek letter delta, used in unicode testing. */
      private static final String DELTA = "\u0394";
    
      /** A domain part which is valid under lenient validation, but invalid under strict validation. */
      static final String LOTS_OF_DELTAS = Strings.repeat(DELTA, 62);
    
      private static final String ALMOST_TOO_MANY_LEVELS = Strings.repeat("a.", 127);
    
      private static final String ALMOST_TOO_LONG = Strings.repeat("aaaaa.", 40) + "1234567890.c";
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Mar 05 13:16:00 GMT 2024
    - 17.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/base/ConverterTest.java

        return new Converter<String, String>(handleNullAutomatically) {
          @Override
          protected String doForward(String string) {
            return "forward";
          }
    
          @Override
          protected String doBackward(String string) {
            return "backward";
          }
        };
      }
    
      public void testSerialization_identity() {
        Converter<String, String> identityConverter = Converter.identity();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Oct 06 17:02:33 GMT 2023
    - 7.8K bytes
    - Viewed (0)
Back to top