mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 15:05:53 +00:00
Refactor different rules into implementation of private interface Algorithm. Since IslamicCalendar is public in Java (not in C++), we cannot put them into different subclass of Calendar and have to let them use the same class and object since the caller UNFORTUNALLY can call setCalculationType and setCivil to change the object to different rule. With this refactoring, we group the formula for the same rule into the same Algorithm implementaiton and now we only do the if/switch check in the constructor or during the call of setCalculationType and setCivil only. The calculation operation is then just delegate the work to the assigned concrete Algorithm. Improve the efficency while the month is very large. Apply the same optimization in PR 2853 which estimate starting point of year iteration based on an inverse calculation. ICU-22679 change parameter name ICU-22679 Use Consumer |
||
---|---|---|
.. | ||
demos | ||
main | ||
maven-migration | ||
perf-tests | ||
releases_tools | ||
samples | ||
tools | ||
.gitignore | ||
APIChangeReport.html | ||
coverage-exclusion.txt | ||
extract-data-files.sh | ||
pom.xml | ||
readme.html | ||
stylesheet8.css |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Style-Type" content="text/css2"> <title>ReadMe for ICU4J</title> <meta name="COPYRIGHT" content="© 2016 and later: Unicode, Inc. and others. License & terms of use: http://www.unicode.org/copyright.html"> <style type="text/css"> h2.doc { background: #CCCCFF } h3.doc { text-decoration: underline } </style> </head> <body style="background-color: rgb(255, 255, 255);" lang="EN-US" link="#0000ff" vlink="#800080"> <p>This readme has moved to the <a href="https://unicode-org.github.io/icu/userguide/icu4j/">ICU4J Readme</a> section in the <a href="https://unicode-org.github.io/icu/">ICU User Guide</a>.</p> <hr /> <p> Copyright © 2016 and later: Unicode, Inc. and others. License & terms of use: <a href="http://www.unicode.org/copyright.html">http://www.unicode.org/copyright.html</a><br/> Copyright © 1997-2016 International Business Machines Corporation and others. All Rights Reserved.</p> </body> </html>