Skip to content
This repository was archived by the owner on Aug 8, 2020. It is now read-only.

evaluate to add java.util.Locale and other classes to the default instance providers #4

Open
SierraGolf opened this issue Aug 21, 2012 · 0 comments
Milestone

Comments

@SierraGolf
Copy link
Member

contra

  1. currently the default InstanceProviders only contain primitive types, boxed primitive types, String and Object. for these types it is easy to define a default and a dirty instance using 0 and 1. for other types this might be more complicated and not analog to 0 and 1 anymore.

pro

  1. it may makes sense to add this and other classes to the default InstanceProviders in the ObjectFactory in order to move unnecessary and redundant implementations of CustomInstanceProviders from the client(s) into the api
  2. counter argument to contra 1. an InstanceProvider must only diliver two disctinct instances which are not equal in their results of hashCode, toString and equals. this is acutally not specific to 0 and 1 and values for default and dirty.
  3. if the client has a problem with the default instance provider he can always override it

classes

  • Locale
  • BigDecimal
  • BigInteger
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant