Here you can find the source of isContains(final Object value, final Object... list)
public static boolean isContains(final Object value, final Object... list)
//package com.java2s; //License from project: Apache License import java.util.*; import static java.util.Arrays.stream; public class Main { public static boolean isContains(final Object value, final Object... list) { return stream(list).anyMatch(it -> Objects.equals(value, it)); }/* w w w .ja va 2 s . com*/ }