Skip to content
This repository was archived by the owner on Aug 8, 2020. It is now read-only.
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

@SierraGolf

Description

@SierraGolf

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions