public class ListUtil extends Object
| Constructor and Description |
|---|
ListUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isEqualAsMultiset(List<?> left,
List<?> right)
Checks whether two given lists that are interpreted as multi-sets contain the same elements.
|
static boolean |
isSubsetAsMultiset(List<?> left,
List<?> right)
Checks whether all elements of a list are contained in another list if both lists are interpreted as multi-sets.
|
public static boolean isEqualAsMultiset(List<?> left, List<?> right)
left - A list.right - Another list.public static boolean isSubsetAsMultiset(List<?> left, List<?> right)
left - A list.right - Another list.Copyright © 2019. All rights reserved.