Thanks, I will doing that if there are not any other ways to work it out. The reason I pull the PixelGenerator class to another class is I do not want the main class too large that will confuse readers. Thus, I only put small logic inside main class and separate complex logic into another class.
On 16 November 2015 at 16:34, Fengdong Yu <fengdo...@everstring.com> wrote: > Just make PixelGenerator as a nested static class? > > > > > > > On Nov 16, 2015, at 1:22 PM, Zhang, Jingyu <jingyu.zh...@news.com.au> > wrote: > > Fengdong > > > -- This message and its attachments may contain legally privileged or confidential information. It is intended solely for the named addressee. If you are not the addressee indicated in this message or responsible for delivery of the message to the addressee, you may not copy or deliver this message or its attachments to anyone. Rather, you should permanently delete this message and its attachments and kindly notify the sender by reply e-mail. Any content of this message and its attachments which does not relate to the official business of the sending company must be taken not to have been sent or endorsed by that company or any of its related entities. No warranty is made that the e-mail or attachments are free from computer virus or other defect.