• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Subclass final class (Boolean) ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Subclass final class (Boolean) ?


  • Subject: Subclass final class (Boolean) ?
  • From: Ken Anderson <email@hidden>
  • Date: Sun, 27 Aug 2006 10:28:50 -0400

OK, I'm a little annoyed here because I find the whole concept of 'final' to be ridiculous.

I would like to subclass Boolean so that I can initialize it (class method) with a short string (valueOf:"t" instead of valueOf:"f") and also to return "t" and "f" for toString (or some other method like toShortString()).

Unfortunately, java.lang.Boolean is marked as final. Is there any way to get around that?

To give a little background, I would like to have a custom WebObjects type where I can declare the factory method to create the instance, and the method to call to get back the string instance. I want to make it a single character so that I can use a string field with length=1 instead of length=5 (saving a lot of space).

Oh, and yet another reason I want categories from Objective-C in Java...

Thanks,
Ken

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Subclass final class (Boolean) ?
      • From: Chuck Hill <email@hidden>
    • Re: Subclass final class (Boolean) ?
      • From: Steve Quirk <email@hidden>
  • Prev by Date: Re: WebObjects 5.4 going open source
  • Next by Date: Re: WebObjects 5.4 going open source
  • Previous by thread: Fwd: Looks like ThinkSecret got some of the scoop on WO from WWDC'06
  • Next by thread: Re: Subclass final class (Boolean) ?
  • Index(es):
    • Date
    • Thread