Skip to content

Commit fab8020

Browse files
committed
Sort members
1 parent e605b58 commit fab8020

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/main/java/org/apache/commons/collections4/MultiMapUtils.java

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -158,19 +158,6 @@ public static <K, V> Set<V> getValuesAsSet(final MultiValuedMap<K, V> map, final
158158
return null;
159159
}
160160

161-
/**
162-
* Null-safe check if the specified {@code MultiValuedMap} is empty.
163-
* <p>
164-
* If the provided map is null, returns true.
165-
* </p>
166-
*
167-
* @param map the map to check, may be null
168-
* @return true if the map is empty or null
169-
*/
170-
public static boolean isEmpty(final MultiValuedMap<?, ?> map) {
171-
return map == null || map.isEmpty();
172-
}
173-
174161
/**
175162
* A utility method to invert the mappings from an input MultiValuedMap
176163
* and add them to an output MultiValuedMap. Use this method to have complete
@@ -192,6 +179,19 @@ M invert(MultiValuedMap<? extends V, ? extends K> input, M output) {
192179
return output;
193180
}
194181

182+
/**
183+
* Null-safe check if the specified {@code MultiValuedMap} is empty.
184+
* <p>
185+
* If the provided map is null, returns true.
186+
* </p>
187+
*
188+
* @param map the map to check, may be null
189+
* @return true if the map is empty or null
190+
*/
191+
public static boolean isEmpty(final MultiValuedMap<?, ?> map) {
192+
return map == null || map.isEmpty();
193+
}
194+
195195
/**
196196
* Creates a {@link ListValuedMap} with an {@link java.util.ArrayList ArrayList} as
197197
* collection class to store the values mapped to a key.

0 commit comments

Comments
 (0)