Created
May 20, 2019 06:21
-
-
Save hackjutsu/d623edc448e7ca0f6841742eacff9f8b to your computer and use it in GitHub Desktop.
[medium snippets] #medium #designPattern #ProxyPattern
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ProxyPatternDemo { | |
public static void main(String[] args) { | |
Image image = new ProxyImage("test_10mb.jpg"); | |
image.display(); | |
System.out.println(""); | |
image.display(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment