📅  最后修改于: 2022-03-11 14:52:30.838000             🧑  作者: Mango
String[] fieldsToInclude = { "id", "name", "location" };
if ( ArrayUtils.contains( fieldsToInclude, "id" ) ) {
// Do some stuff.
}