Return-Path: Delivered-To: apmail-commons-dev-archive@www.apache.org Received: (qmail 43848 invoked from network); 4 Nov 2010 01:48:42 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Nov 2010 01:48:42 -0000 Received: (qmail 92924 invoked by uid 500); 4 Nov 2010 01:49:13 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 92807 invoked by uid 500); 4 Nov 2010 01:49:13 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 92799 invoked by uid 99); 4 Nov 2010 01:49:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 01:49:13 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sebbaz@gmail.com designates 209.85.216.43 as permitted sender) Received: from [209.85.216.43] (HELO mail-qw0-f43.google.com) (209.85.216.43) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Nov 2010 01:49:05 +0000 Received: by qwj9 with SMTP id 9so671164qwj.30 for ; Wed, 03 Nov 2010 18:48:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type:content-transfer-encoding; bh=7ale5driljVEfZYGKrtBU3MQULhRki0ImZtkSZYjUiU=; b=f3HTmTA4EWAQ0HjjQTQQHap33+2WHYIkfcdMq+2MZSvhtFlnbnq4NFH9gW4RIqz8Dj IhEfsbi5EMRn7si0Y4mOuP1E7pLAkZ824T4yYqtjr6X4yOR6EXgKE4YDMBM2+3IAayr9 pDnX676nZlngHRvWybo2x1bZrnC9B5xd969fc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=KFmu3G6j6IwcBpMlEU178O4trnQ07Y29Hes/iK7ccOOLSkqoRcvoEDhxfNkEndG+bQ 5uYAFrMlCXmfn+v8OhdoRrOtRPk6QKvU+CDYtMQp7afTAxXBR74HJTDHSV3Eix4NXUrH Sv488r5+kauZ2sxV1OfLqDz8NfTLmGLz4IJoo= MIME-Version: 1.0 Received: by 10.229.97.68 with SMTP id k4mr3532qcn.261.1288835324003; Wed, 03 Nov 2010 18:48:44 -0700 (PDT) Received: by 10.229.72.94 with HTTP; Wed, 3 Nov 2010 18:48:43 -0700 (PDT) Date: Thu, 4 Nov 2010 01:48:43 +0000 Message-ID: Subject: Re: svn commit: r1030464 [1/3] - in /commons/proper/math/trunk/src: main/java/org/apache/commons/math/ main/java/org/apache/commons/math/analysis/ main/java/org/apache/commons/math/analysis/integration/ main/java/org/apache/commons/math/analysis/inte From: sebb To: Commons Developers List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On 4 November 2010 01:31, Brent Worden wrote: > On 11/3/2010 8:10 PM, Bill Barker wrote: >>> >>> =A0*/ >>> public interface UnivariateRealFunction { >>> - >>> =A0 =A0/** >>> - =A0 =A0 * Compute the value for the function. >>> - =A0 =A0 * @param x the point for which the function value should be >>> computed >>> - =A0 =A0 * @return the value >>> - =A0 =A0 * @throws FunctionEvaluationException if the function evaluat= ion >>> fails >>> + =A0 =A0 * Compute the value of the function. >>> + =A0 =A0 * >>> + =A0 =A0 * @param x Point at which the function value should be comput= ed. >>> + =A0 =A0 * @return the value. >>> =A0 =A0 */ >>> - =A0 =A0double value(double x) throws FunctionEvaluationException; >>> - >>> + =A0 =A0double value(double x); >>> } >>> >> =A0* @version $Revision$ $Date$ >> >> IMHO we still need the @throws line in the javadoc. =A0Otherwise end use= rs >> are going to get a nasty surprise when they get an unchecked exception >> thrown. >> >> > +1. =A0This is a nicety other commons projects have employed and is indee= d > quite useful during development. Also, the abstract class that implements the interface - ComposableFunction - has the method sig: public abstract double value(double x) throws FunctionEvaluationException; It's confusing that the interface and class don't agree. > Thanks, > > Brent. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org > For additional commands, e-mail: dev-help@commons.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org