Open GoogleCodeExporter opened 9 years ago
Original comment by bestchai
on 25 Jun 2011 at 7:18
Original comment by bestchai
on 19 Jul 2011 at 11:57
Original comment by bestchai
on 28 Aug 2011 at 4:54
The following might be a good solution for solving partition caching:
1) Create a two static methods called newPartition() in Partition, and
have them call each of the corresponding Partition constructors.
2) Additionally, add a PartitionCache argument to both of these calls.
What these calls will do is instantiate a new Partition, and then call
pCache.addNewPartition().
3) Make all constructors in Partition class private, thereby forcing
all users of Partition to use the newPartition() calls
Now, users can create a newPartition only through these calls, and
they interact with pCache for everything else.
Original comment by bestchai
on 1 Jan 2012 at 1:57
Original issue reported on code.google.com by
bestchai
on 24 May 2011 at 7:11