Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for withKeyValueSeparator (0.1 sec)

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

      }
    
      public void testMapSplitter_emptySeparator() {
        assertThrows(IllegalArgumentException.class, () -> COMMA_SPLITTER.withKeyValueSeparator(""));
      }
    
      public void testMapSplitter_malformedEntry() {
        assertThrows(
            IllegalArgumentException.class,
            () -> COMMA_SPLITTER.withKeyValueSeparator("=").split("a=1,b,c=2"));
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 29.6K bytes
    - Viewed (0)
  2. 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) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 21:14:05 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/base/JoinerTest.java

        Joiner j = Joiner.on("x").useForNull("y");
        assertThrows(UnsupportedOperationException.class, () -> j.useForNull("y"));
      }
    
      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();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  4. 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
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Sep 26 19:15:09 UTC 2024
    - 47.5K bytes
    - Viewed (0)
Back to top