-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
200: Add a variant option when obtaining a UnitFormat from
FormatService. Task-Url: #200
- Loading branch information
Showing
5 changed files
with
11 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,7 +38,7 @@ | |
* This interface represent the service to obtain instances of {@link UnitFormat} and {@link QuantityFormat}. | ||
* | ||
* @author <a href="mailto:[email protected]">Werner Keil</a> | ||
* @version 2.0, November 4, 2020 | ||
* @version 2.1, November 16, 2020 | ||
* @since 2.0 | ||
*/ | ||
public interface FormatService { | ||
|
@@ -93,10 +93,11 @@ public static enum FormatType { | |
* Returns the unit format having the specified name or {@code null} if none. | ||
* | ||
* For example {@code getUnitFormat("Simple")} to return a simple {@link UnitFormat} implementation.<br> | ||
* The variant is an arbitrary value to allow a variation of a <code>UnitFormat</code>, for example <code>case sensitive</code> vs. <code>case insensitive</code> <a href="https://ucum.org/ucum.html">UCUM</a> format. | ||
* The variant is an arbitrary value to allow a variation of a <code>UnitFormat</code>, for example <code>case sensitive</code> vs. <code>case insensitive</code> <a href="https://ucum.org/ucum.html">UCUM</a> format. | ||
* <p>If no variant is applicable, the <code>UnitFormat</code> matching the name only is returned.</p> | ||
* @param name | ||
* the name of the format. | ||
* @param variant Any arbitrary value used to indicate a variation of a <code>UnitFormat</code>. | ||
* @param variant any arbitrary value used to indicate a variation of a <code>UnitFormat</code>. | ||
* @return the corresponding unit format. | ||
*/ | ||
UnitFormat getUnitFormat(String name, String variant); | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters