File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes class diagram - level of details Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "class diagram - level of details" Watch "class diagram - level of details" New topic

class diagram - level of details

Arkadiusz Ryckowski

Joined: May 18, 2004
Posts: 12
Let says there's a case 'a user searches for a car by color and name'. For moderators - it's not my assigment and I belive it's quite general

I'm wondering if I should define method as

Collection findCarsByCriteria()
Collection findCars(Criteria)
Collection findCarsByNameOrColor(String,Color)

If I choose 1 or 3 should define classes Color or Criteria ?
I think even 5 is ok, it's designer rensposibility to define method sygnatures

SCEA 5.0<br />SCBCD 5.0<br />SCJP 1.4
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63854

"Arek R.", please check your private messages.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: class diagram - level of details
It's not a secret anymore!