Comments (3)
I suggest getSystemOfUnitNames() returning a Set<String>. The reason for
returning only the names instead than fully instantiated SystemOfUnits is that
the later could be (in some implementations) costly objects. Someone who really
want all SystemOfUnits can iterate over the names and invoke
getSystemOfUnits(String), but I think that many users will apply some filtering
based on the names.
If we add this method in SystemOfUnitsService, we should do something similar
in UnitFormatServices.
Original comment by [email protected]
on 8 Jan 2013 at 5:09
from unitsofmeasure.
That's a good starting point. It allows to loop the list of available
systems to be iterated and look up all one by one or based on some
preference only those an implementation wants.
While it's a little extra step, let's say there are several, and the
service wants just SI, I agree, instantiating all inside the getter for
that set could be costly.
Werner
--
Werner Keil | JCP Executive Committee Member | Eclipse UOMo Lead, Babel
Language Champion | Java Godfather
Twitter @wernerkeil | #Java_Social | #EclipseUOMo | #OpenDDR
Skype werner.keil | Google+ gplus.to/wernerkeil
* Eclipse DemoCamp: November 30 2012, Vienna, Austria. Werner Keil, Eclipse
UOMo Lead and M�rsk Build Manager will present "Triple-E class Continuous
Delivery with Hudson, Maven, Kokki and PyDev"
Original comment by [email protected]
on 8 Jan 2013 at 5:21
from unitsofmeasure.
Committed as of revision 225.
Original comment by [email protected]
on 10 Jan 2013 at 4:38
- Changed state: Fixed
from unitsofmeasure.
Related Issues (20)
- Correct example code sections in JavaDoc HOT 2
- IncommensurableException should be a checked exception HOT 3
- Further document Implementations in Maven HOT 2
- Graduate 0.6 Release HOT 3
- Explore support for JSR-308 HOT 4
- Add methods to Quantity HOT 2
- Improve Documentation HOT 1
- Link API javadocs from the homepage HOT 4
- Move our code repo to Git from SVN HOT 2
- Remove UnsupportedException from asType(Class) javadoc HOT 1
- Unit should declare a toString() method HOT 1
- Add missing standard constructors in unit exceptions HOT 1
- Consider renaming RadioactiveActivity as RadioActivity HOT 3
- Should Unit.alternate return type be Unit<Q>? HOT 1
- UnitFormat.parse(...) should throws ParseException HOT 1
- Velocity interface shall be renamed as Speed HOT 1
- Unit.add method should be renamed "shift" HOT 1
- Attach source jars to build HOT 1
- UCUM links in JavaDoc are outdated HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unitsofmeasure.