Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for withKeyValueSeparator (0.23 sec)

  1. guava-tests/test/com/google/common/base/JoinerTest.java

        try {
          j = j.useForNull("y");
          fail();
        } catch (UnsupportedOperationException expected) {
        }
      }
    
      public void testMap() {
        MapJoiner j = Joiner.on(';').withKeyValueSeparator(':');
        assertEquals("", j.join(ImmutableMap.of()));
        assertEquals(":", j.join(ImmutableMap.of("", "")));
    
        Map<@Nullable String, @Nullable String> mapWithNulls = Maps.newLinkedHashMap();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 12.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/SplitterTest.java

      }
    
      public void testMapSplitter_emptySeparator() {
        try {
          COMMA_SPLITTER.withKeyValueSeparator("");
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testMapSplitter_malformedEntry() {
        try {
          COMMA_SPLITTER.withKeyValueSeparator("=").split("a=1,b,c=2");
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 29.8K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/base/SplitterTest.java

      }
    
      public void testMapSplitter_emptySeparator() {
        try {
          COMMA_SPLITTER.withKeyValueSeparator("");
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testMapSplitter_malformedEntry() {
        try {
          COMMA_SPLITTER.withKeyValueSeparator("=").split("a=1,b,c=2");
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/Splitter.java

       * @since 10.0
       */
      public MapSplitter withKeyValueSeparator(String separator) {
        return withKeyValueSeparator(on(separator));
      }
    
      /**
       * Returns a {@code MapSplitter} which splits entries based on this splitter, and splits entries
       * into keys and values using the specified separator.
       *
       * @since 14.0
       */
      public MapSplitter withKeyValueSeparator(char separator) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.7K bytes
    - Viewed (0)
  5. guava/src/com/google/common/base/Splitter.java

       * @since 10.0
       */
      public MapSplitter withKeyValueSeparator(String separator) {
        return withKeyValueSeparator(on(separator));
      }
    
      /**
       * Returns a {@code MapSplitter} which splits entries based on this splitter, and splits entries
       * into keys and values using the specified separator.
       *
       * @since 14.0
       */
      public MapSplitter withKeyValueSeparator(char separator) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 24.4K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/base/JoinerTest.java

        try {
          j = j.useForNull("y");
          fail();
        } catch (UnsupportedOperationException expected) {
        }
      }
    
      public void testMap() {
        MapJoiner j = Joiner.on(';').withKeyValueSeparator(':');
        assertEquals("", j.join(ImmutableMap.of()));
        assertEquals(":", j.join(ImmutableMap.of("", "")));
    
        Map<@Nullable String, @Nullable String> mapWithNulls = Maps.newLinkedHashMap();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 12.6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/base/Joiner.java

       *
       * @since 20.0
       */
      public MapJoiner withKeyValueSeparator(char keyValueSeparator) {
        return withKeyValueSeparator(String.valueOf(keyValueSeparator));
      }
    
      /**
       * Returns a {@code MapJoiner} using the given key-value separator, and the same configuration as
       * this {@code Joiner} otherwise.
       */
      public MapJoiner withKeyValueSeparator(String keyValueSeparator) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 18.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/Joiner.java

       *
       * @since 20.0
       */
      public MapJoiner withKeyValueSeparator(char keyValueSeparator) {
        return withKeyValueSeparator(String.valueOf(keyValueSeparator));
      }
    
      /**
       * Returns a {@code MapJoiner} using the given key-value separator, and the same configuration as
       * this {@code Joiner} otherwise.
       */
      public MapJoiner withKeyValueSeparator(String keyValueSeparator) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 18.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/net/MediaType.java

        if (h == 0) {
          h = Objects.hashCode(type, subtype, parametersAsMap());
          hashCode = h;
        }
        return h;
      }
    
      private static final MapJoiner PARAMETER_JOINER = Joiner.on("; ").withKeyValueSeparator("=");
    
      /**
       * Returns the string representation of this media type in the format described in <a
       * href="http://www.ietf.org/rfc/rfc2045.txt">RFC 2045</a>.
       */
      @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Aug 07 16:17:10 GMT 2023
    - 46.2K bytes
    - Viewed (0)
Back to top