Design inconsistencies.

Hi,

Could it be better if there is consistency between objects' methods which return the same type of information?

For instance (language used: JAVA).

AdCenterAccount.getAccountId() returns an Integer while AdCenterCampaign.getCampaignId() returns an int.

Thanks.

[272 byte] By [Ludo-R] at [2008-2-27]
# 1

This is necessary as getAccountId can possibly return a null value therefore must be a complex type. getCampaignId does not return a null thus can be a primitive type.

Thanks

Andy

alinton at 2007-9-4 > top of Msdn Tech,Windows Live Developer Forums,Microsoft adCenter: Development...

Windows Live Developer Forums

Site Classified