#108 Consistent package naming throughout the examples
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package com.iluwatar.lazy.loading;
|
||||
|
||||
/**
|
||||
*
|
||||
* Heavy objects are expensive to create.
|
||||
*
|
||||
*/
|
||||
public class Heavy {
|
||||
|
||||
public Heavy() {
|
||||
System.out.println("Creating Heavy ...");
|
||||
try {
|
||||
Thread.sleep(1000);
|
||||
} catch (InterruptedException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
System.out.println("... Heavy created");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user