commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reinhard <unkn...@public-files.de>
Subject Re: [beanutils] getSimpleProperty
Date Tue, 23 Sep 2003 17:17:27 GMT
Craig R. McClanahan wrote:

> That is not actually true if the data type is actually *boolean* (lower
> case "b").  In that scenario, it's perfectly legal to have the getter
> method start with "is" instead of "get".  The following is a legal
> read-write property:
>
>   public boolean isStarted();
>   public void setStarted(boolean started);
>
> The following is not:
>
>   public Boolean isStarted();
>   public void setStarted(Boolean started);

Thanks for the extra clarification.
Is the above a general rule on java or is it limited to BeanUtils?

Reinhard


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


Mime
View raw message