atetrel / squiggle-sql

Automatically exported from code.google.com/p/squiggle-sql
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Use singleton for Parameter #14

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
com.truemesh.squiggle.Parameter should have a method getInstance() that would 
always return the same Parameter instance, so that we don't have to create a 
new one everytime we use it.

Since parameter is stateless, there won't be a problem in sharing the instance.

Attached is the simple path to Parameter.java to achieve this.

Original issue reported on code.google.com by brunoabdon on 5 Aug 2010 at 8:28

Attachments: