Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 804 for string3 (0.24 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/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)
  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-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)
  6. 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)
  7. 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)
  8. guava-testlib/src/com/google/common/collect/testing/google/TestStringBiMapGenerator.java

      protected abstract BiMap<String, String> create(Entry<String, String>[] entries);
    
      @Override
      @SuppressWarnings("unchecked")
      public final Entry<String, String>[] createArray(int length) {
        return (Entry<String, String>[]) new Entry<?, ?>[length];
      }
    
      @Override
      public final String[] createKeyArray(int length) {
        return new String[length];
      }
    
      @Override
      public final String[] createValueArray(int length) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/base/Preconditions.java

     *
     * <p>{@code Preconditions} 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 Preconditions} will still
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 11 11:52:14 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/base/AsciiTest.java

        for (char c : IGNORED.toCharArray()) {
          String str = String.valueOf(c);
          assertEquals(str, c, Ascii.toLowerCase(c));
          assertEquals(str, c, Ascii.toUpperCase(c));
          assertFalse(str, Ascii.isLowerCase(c));
          assertFalse(str, Ascii.isUpperCase(c));
        }
      }
    
      public void testCharsLower() {
        for (char c : LOWER.toCharArray()) {
          String str = String.valueOf(c);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 5.5K bytes
    - Viewed (0)
Back to top