Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 57376 invoked from network); 3 Aug 2005 18:31:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Aug 2005 18:31:53 -0000 Received: (qmail 19052 invoked by uid 500); 3 Aug 2005 18:31:50 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 19031 invoked by uid 500); 3 Aug 2005 18:31:49 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 19018 invoked by uid 99); 3 Aug 2005 18:31:49 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Aug 2005 11:31:49 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of ggregory@seagullsoftware.com designates 12.6.96.2 as permitted sender) Received: from [12.6.96.2] (HELO mailer18.seagullsoftware.com) (12.6.96.2) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Aug 2005 11:31:39 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: [lang][POLL] RE: Why is org.apache.commons.lang.math.IntRange final? Date: Wed, 3 Aug 2005 14:31:44 -0400 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [lang][POLL] RE: Why is org.apache.commons.lang.math.IntRange final? Thread-Index: AcWXfGv40iAAfuJgQX6L6JaGVU5ClwA3QcVQ From: "Gary Gregory" To: "Jakarta Commons Developers List" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Stephen and all: What about making the Range sub-classes non-final? Gary > -----Original Message----- > From: Amit Kulkarni [mailto:amitkulz@yahoo.com] > Sent: Tuesday, August 02, 2005 9:08 AM > To: commons-dev@jakarta.apache.org > Subject: Why is org.apache.commons.lang.math.IntRange final? >=20 > I am trying to extend the functionality of IntRange based on Martin > Fowler's Analysis Pattern of "Range" to model a street Address Range. >=20 > http://www.martinfowler.com/ap2/range.html >=20 > So for example, a street "Joe Blow St" will have an associated > AddressRange of 2000-2999 etc... >=20 > I wanted to extend IntRange and add the functions mentioned in the > "Range" pattern and add some more: for e.g. to check if its valid range > (ideally in a constructor or a isValid() method). Right now I am forced > into cut pasting IntRange in my AddressRange class which extends > org.apache.commons.lang.math.Range. I would ideally like to just extend > IntRange. Why are these classes finalized? Is it just because of > security as David Wheeler says in #8 > http://www.dwheeler.com/secure-programs/Secure-Programs-HOWTO/java.html >=20 > Btw, Commons is cool! I am also using MultiKey and MultiKeyMap to > figure out errors in street attributes. >=20 > Thanks in advance! >=20 >=20 >=20 > ____________________________________________________ > Start your day with Yahoo! - make it your home page > http://www.yahoo.com/r/hs >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-dev-help@jakarta.apache.org >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org