648540858
2022-06-03 19a52a20f358b22211dde9da9d25b65c9cbaddcf
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);
        });
    }
}