Since it's an interface, I could change it to IHasACharset?

Or If you prefer I  could rename it to YouGiveLove?  (Lucky Millenials- you
aren't headsonged)

The name follows a pattern for interfaces of this sort, which are basically
retrofit markers for the presence of property, (with associated getters).
I've seen it used in other projects, but it might be bleed through from
some  OWL / RDF patterns.

I'm not in love with the pattern but it required the least thought :)

(java 8 makes this sort of interface moot, as the accessor can be added as
a default method. It is even be a candidate for the proper use of Optional.
)

On Jul 5, 2017 1:14 PM, "Gary Gregory" <garydgreg...@gmail.com> wrote:

Hi All,

The new interface name HasCharset is pretty bad IMO.

CharsetProvider is the obvious (to me) better name even though there
already is a class called java.nio.charset.spi.CharsetProvider.

Alternatives could be CharsetContainer, CharsetAccessor, CharsetGetter, ?

Gary

Reply via email to