Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 453 for strings (0.17 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. android/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 May 03 12:43:13 GMT 2024
    - Last Modified: Fri Apr 09 00:49:18 GMT 2021
    - 12.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/base/ToStringHelperTest.java

      }
    
      public void testToStringHelperWithArrays() {
        String[] strings = {"hello", "world"};
        int[] ints = {2, 42};
        Object[] objects = {"obj"};
        String[] arrayWithNull = {null};
        Object[] empty = {};
        String toTest =
            MoreObjects.toStringHelper("TSH")
                .add("strings", strings)
                .add("ints", ints)
                .add("objects", objects)
    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)
  4. android/guava-tests/test/com/google/common/net/InternetDomainNameTest.java

      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)
  5. guava-tests/test/com/google/common/base/StringsTest.java

        assertNull(Strings.emptyToNull(null));
        assertNull(Strings.emptyToNull(""));
        assertEquals("a", Strings.emptyToNull("a"));
      }
    
      public void testIsNullOrEmpty() {
        assertTrue(Strings.isNullOrEmpty(null));
        assertTrue(Strings.isNullOrEmpty(""));
        assertFalse(Strings.isNullOrEmpty("a"));
      }
    
      public void testPadStart_noPadding() {
        assertSame("", Strings.padStart("", 0, '-'));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

      }
    
      public void testSubSetExclusiveExclusive() {
        String[] strings = NUMBER_NAMES.toArray(new String[0]);
        ImmutableSortedSet<String> set = ImmutableSortedSet.copyOf(strings);
        Arrays.sort(strings);
        for (int i = 0; i < strings.length; i++) {
          for (int j = i; j < strings.length; j++) {
            assertThat(set.subSet(strings[i], false, strings[j], false))
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 46.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/hash/Hashing.java

       * Comparisons between the two should take this into account.
       *
       * <p>Fingerprint2011() is a form of Murmur2 on strings up to 32 bytes and a form of CityHash for
       * longer strings. It could have been one or the other throughout. The main advantage of the
       * combination is that CityHash has a bunch of special cases for short strings that don't need to
       * be replicated here. The result will never be 0 or 1.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 09 00:37:15 GMT 2024
    - 29.2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/base/ToStringHelperTest.java

      }
    
      public void testToStringHelperWithArrays() {
        String[] strings = {"hello", "world"};
        int[] ints = {2, 42};
        Object[] objects = {"obj"};
        String[] arrayWithNull = {null};
        Object[] empty = {};
        String toTest =
            MoreObjects.toStringHelper("TSH")
                .add("strings", strings)
                .add("ints", ints)
                .add("objects", objects)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:24:55 GMT 2024
    - 15.6K bytes
    - Viewed (0)
  9. guava/src/com/google/common/base/Verify.java

     *
     * <p>As with {@link Preconditions}, {@code Verify} uses {@link Strings#lenientFormat} to format
     * error message template strings. This only supports the {@code "%s"} specifier, not the full range
     * of {@link java.util.Formatter} specifiers. However, note that if the number of arguments does not
     * match the number of occurrences of {@code "%s"} in the format string, {@code Verify} will still
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon May 17 14:07:47 GMT 2021
    - 18.5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/base/Utf8Test.java

     * @author Martin Buchholz
     * @author Clément Roux
     */
    @GwtCompatible(emulated = true)
    public class Utf8Test extends TestCase {
    
      private static final ImmutableList<String> ILL_FORMED_STRINGS;
    
      static {
        ImmutableList.Builder<String> builder = ImmutableList.builder();
        char[] surrogates = {
          MAX_LOW_SURROGATE, MAX_HIGH_SURROGATE, MIN_LOW_SURROGATE, MIN_HIGH_SURROGATE,
        };
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 12.7K bytes
    - Viewed (0)
Back to top