FAQ
Two comments:

1. In this particular case, all I need is the ability to override base
class method
getEnum(). No need to access or change member variables. As the class already
defines getters for the members, the members can remain private.

2. I noticed that many members have package (default Java) visibility.
An example is
analysis.Token. Its two members startOffset and endOffset only have
getters, but no
setters. If you want to set these after the Token was constructed,
you need to define
a subclass in the org.apache.lucene.analysis package. In cases like
this, I don't think
it would harm to make them protected, such that subclasses outside
the package
can access them. Or add setters to the base class.

- Andreas.

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

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 4 of 7 | next ›
Discussion Overview
groupdev @
categorieslucene
postedAug 16, '06 at 12:34a
activeOct 26, '06 at 7:04a
posts7
users3
websitelucene.apache.org

People

Translate

site design / logo © 2021 Grokbase