Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 615 for strings (0.44 sec)

  1. guava-testlib/src/com/google/common/collect/testing/TestStringSetGenerator.java

      public Set<String> create(Object... elements) {
        String[] array = new String[elements.length];
        int i = 0;
        for (Object e : elements) {
          array[i++] = (String) e;
        }
        return create(array);
      }
    
      protected abstract Set<String> create(String[] elements);
    
      @Override
      public String[] createArray(int length) {
        return new String[length];
      }
    
      /**
       * {@inheritDoc}
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/MapsTest.java

            new EntryTransformer<String, String, String>() {
              @Override
              public String transformEntry(String key, String value) {
                return key + value;
              }
            };
        SortedMap<String, String> transformed = transformEntries(map, concat);
    
        /*
         * We'd like to sanity check that we didn't get a NavigableMap out, but we
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 67.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/MapsTest.java

            new EntryTransformer<String, String, String>() {
              @Override
              public String transformEntry(String key, String value) {
                return key + value;
              }
            };
        SortedMap<String, String> transformed = transformEntries(map, concat);
    
        /*
         * We'd like to sanity check that we didn't get a NavigableMap out, but we
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 64.3K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/SampleElements.java

      }
    
      public static class Strings extends SampleElements<String> {
        public Strings() {
          // elements aren't sorted, to better test SortedSet iteration ordering
          super("b", "a", "c", "d", "e");
        }
    
        // for testing SortedSet and SortedMap methods
        public static final String BEFORE_FIRST = "\0";
        public static final String BEFORE_FIRST_2 = "\0\0";
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/SampleElements.java

      }
    
      public static class Strings extends SampleElements<String> {
        public Strings() {
          // elements aren't sorted, to better test SortedSet iteration ordering
          super("b", "a", "c", "d", "e");
        }
    
        // for testing SortedSet and SortedMap methods
        public static final String BEFORE_FIRST = "\0";
        public static final String BEFORE_FIRST_2 = "\0\0";
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. guava-testlib/src/com/google/common/collect/testing/TestStringQueueGenerator.java

        String[] array = new String[elements.length];
        int i = 0;
        for (Object e : elements) {
          array[i++] = (String) e;
        }
        return create(array);
      }
    
      protected abstract Queue<String> create(String[] elements);
    
      @Override
      public String[] createArray(int length) {
        return new String[length];
      }
    
      /** Returns the original element list, unchanged. */
      @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  9. 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)
  10. android/guava-tests/test/com/google/common/collect/TreeMultimapExplicitTest.java

    public class TreeMultimapExplicitTest extends TestCase {
    
      /**
       * Compare strings lengths, and if the lengths are equal compare the strings. A {@code null} is
       * less than any non-null value.
       */
      private enum StringLength implements Comparator<@Nullable String> {
        COMPARATOR;
    
        @Override
        public int compare(@Nullable String first, @Nullable String second) {
          if (first == second) {
            return 0;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 8.3K bytes
    - Viewed (0)
Back to top