- Sort Score
- Num 10 results
- Language All
Results 1 - 5 of 5 for withKeyValueSeparator (0.1 seconds)
-
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) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 19:19:10 GMT 2026 - 23.8K bytes - Click Count (0) -
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")); } /**
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 15:59:55 GMT 2026 - 29.7K bytes - Click Count (0) -
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) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 19:19:10 GMT 2026 - 23.8K bytes - Click Count (0) -
android/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(':'); assertThat(j.join(ImmutableMap.of())).isEqualTo(""); assertThat(j.join(ImmutableMap.of("", ""))).isEqualTo(":"); Map<@Nullable String, @Nullable String> mapWithNulls = new LinkedHashMap<>();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 15:59:55 GMT 2026 - 13.2K bytes - Click Count (0) -
android/guava/src/com/google/common/net/MediaType.java
if (h == 0) { h = hash(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
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Oct 02 01:46:40 GMT 2025 - 48K bytes - Click Count (0)