16 lines
427 B
Java
16 lines
427 B
Java
package learn.simple_flyweight;
|
|
|
|
public class UnsharedConcreteFlyweight extends Flyweight {
|
|
private long allState;
|
|
|
|
public UnsharedConcreteFlyweight(long allState) {
|
|
super();
|
|
this.allState = allState;
|
|
}
|
|
|
|
@Override
|
|
public void operation(long extrinsicState) {
|
|
System.out.println("Unshared Flyweight " + allState + " calling operation with extrinsic state " + extrinsicState);
|
|
}
|
|
}
|