contains

static boolean contains(Predicate<Item> filter)

Checks if the shop has any item that matches the specified filter

Return

true if any item in the shop matches the specified filter, false otherwise

Parameters

filter

the filter to check if any item exists

static boolean contains(Array<int> id)

Checks if the shop has any item with any of the specified ids

Return

true if any item in the shop has any of the specified ids, false otherwise

Parameters

id

the item ids

static boolean contains(Array<String> name)

Checks if the shop has any item whose name contains any of the specified names

Return

true if any item in the shop contains any of the specified names, false otherwise

Parameters

name

the item name