contains

open fun contains(filter: Predicate<Item>): Boolean

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


open fun contains(id: Array<Int>): Boolean

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


open fun contains(name: Array<String>): Boolean

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