class DATE_LIST
DATE objects stored as list of INTEGER_32 numbers
note
description: "${DATE} objects stored as list of ${INTEGER_32} numbers"
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-05-14 9:25:44 GMT (Tuesday 14th May 2024)"
revision: "3"
class
DATE_LIST
inherit
EL_ARRAYED_REPRESENTATION_LIST [DATE, INTEGER]
rename
seed_item as compact_item,
to_seed as to_compact_date,
to_representation as to_date
end
create
make
feature -- Conversion
to_date (compact_date: INTEGER): DATE
do
create Result.make_by_ordered_compact_date (compact_date)
end
to_compact_date (date: DATE): INTEGER
do
Result := date.ordered_compact_date
end
end