mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-05-13 09:07:49 +08:00
13 lines
314 B
Java
13 lines
314 B
Java
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);
|
|
});
|
|
}
|
|
}
|