Qvaq

Search for Groups

Create New Group

Hot Groups

New Groups

Recently Active Groups

Proxy Pattern (Swedish)

Proxy Pattern_swe

Group Members (4)

Bild
murtlest
i tyresö
Bild
skanaar
www.nomnoml.com
Bild
gee_fss
Huge
Bild
comfort
No status set

skanaar 2009-06-04, 18:52

class ImageProxy implements ImageInterface{
 private String file;
 Image img;
 ImageProxy(String file){
   this.file = file;
 }
 Jpeg GetJPEG(){
   if(img == null) img = new Image(file);
   return img.GetJPEG();
 }
}

By skanaar in Proxy Pattern_swe on 2009-06-04 18:52:40.