class EL_NATURAL_16_RESULT

(source code)

description

Implementation of EL_NUMERIC_RESULT [NATURAL_16]

note
	description: "Implementation of ${EL_NUMERIC_RESULT [NATURAL_16]}"

	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: "2024-09-30 7:48:08 GMT (Monday 30th September 2024)"
	revision: "4"

class
	EL_NATURAL_16_RESULT

inherit
	EL_NUMERIC_RESULT [NATURAL_16]

feature -- Element change

	add (n: NATURAL_16)
		do
			value := value + n
		end

	set_max (n: NATURAL_16)
		do
			value := n.max (value)
		end

	set_min (n: NATURAL_16)
		do
			value := n.min (value)
		end

	set_to_max_value
		local
			n: NATURAL_16
		do
			value := n.Max_value
		end

	set_to_min_value
		local
			n: NATURAL_16
		do
			value := n.Min_value
		end

end