Re: Calendar Issue
- From: Lew <noone@xxxxxxxxxxxxx>
- Date: Fri, 07 Nov 2008 01:08:17 -0500
jagadesh wrote:
so how can i rebuild this situation so that i can use less number of
calendar instances .
Don't bother. Just use as many Calendars as you need. Hanging on to instances for too long can interfere with garbage collection. Just create a new instance at need for each new date/time. If you need to re-use a particular time, for example, to enter the same exact time into different structures or database rows, then keep the same instance that represents that moment. When you need to create a new moment, use a new Calendar (or Date).
--
Lew
.
- Follow-Ups:
- Re: Calendar Issue
- From: jagadesh
- Re: Calendar Issue
- References:
- Calendar Issue
- From: jagadesh
- Re: Calendar Issue
- From: Arne Vajhøj
- Re: Calendar Issue
- From: jagadesh
- Calendar Issue
- Prev by Date: Re: 7.0 wishlist?
- Next by Date: Issue With ArrayList
- Previous by thread: Re: Calendar Issue
- Next by thread: Re: Calendar Issue
- Index(es):
Relevant Pages
|