class EL_ONE_OF_QUERY_CONDITION

(source code)

description

One of query condition

note
	description: "One of query condition"

	author: "Finnian Reilly"
	copyright: "Copyright (c) 2001-2022 Finnian Reilly"
	contact: "finnian at eiffel hyphen loop dot com"

	license: "MIT license (See: en.wikipedia.org/wiki/MIT_License)"
	date: "2023-08-08 11:35:11 GMT (Tuesday 8th August 2023)"
	revision: "8"

class
	EL_ONE_OF_QUERY_CONDITION [G]

inherit
	EL_QUERY_CONDITION [G]

create
	make

feature {NONE} -- Initialization

	make (a_conditions: like conditions)
		do
			conditions := a_conditions
		end

feature -- Status query

	met (item: G): BOOLEAN
		-- True if `item' meets at least one of the `conditions'
		do
			Result := across conditions as condition some
				condition.item.met (item)
			end
		end

feature {NONE} -- Implementation

	conditions: ARRAY [EL_QUERY_CONDITION [G]]

end