648540858
2022-05-06 5d901b5e3f033e8b04e53420d68626cbd87431c8
1
2
3
4
5
6
7
8
9
10
11
12
package com.genersoft.iot.vmp.utils;
 
import java.util.Arrays;
 
public class CollectionUtil {
 
    public static <T> boolean contains(T[] array, final T element) {
        return array != null && Arrays.stream(array).anyMatch((x) -> {
            return ObjectUtils.nullSafeEquals(x, element);
        });
    }
}