On 9/28/06, Harris Boyce III <[EMAIL PROTECTED]> wrote:
Garrett -

Yeah, shoulda done that to begin with, sorry...OK, from package
org.apache.abdera.model, interface Feed defines these methods:

List<Entry> getEntries();
void addEntry(Entry entry);
...
Entry getEntry(String id);

In .NET, I could define these as properties like this:

List<Entry> Entries {
  get;
  set;
}

And then, normally, I would use the methods exposed by List<Entry> to
perform operations on the Entries (add, remove, etc.).  Now, granted,
I would have to implement a method to retrieve the entry by ID just as
done above.  But I guess my question may be centered around the
encapsulation standards across the languages?  Maybe?

Does that clarify any?  If not, let me know.

Well, you'd definately want the getter for the entries, but setting an
entire list of entries is kind of weird IMO...  Perhaps other people
have optinions.

-garrett

Reply via email to