Giter Site home page Giter Site logo

Comments (3)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 18, 2024
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.