648540858
2022-08-19 1a9e49d9ff210e39f6297150db758906a4f02e6f
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);
        });
    }
}