lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <yo...@apache.org>
Subject Re: FieldCacheImpl mistake?
Date Thu, 15 Feb 2007 21:36:15 GMT
On 2/15/07, Chris Hostetter <hossman_lucene@fucit.org> wrote:
> the ideal way to do this might be to add a "getDefault()" method to the
> IntParser and FloatParser interfaces ... but thta wouldn't be backwards
> compatible.

Interfaces vs abstract classes again :-)
Users sometimes like interfaces better because they can essentially do
multiple-inheritance, but providers (like us) should prefer abstract
classes
because it allows us to add new methods and provide backward compatible
implementations.

IndexReader.hasNorms(), Analyzer.getPositionIncrementGap(), etc, have
all been possible to add in a back-compatible manner becuase they were
based on classes and not interfaces.

-Yonik

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message