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 interface Obj { | |
protected void doSomething(); | |
} | |
public class ObjImpl implements Obj { | |
protected void doSomething() { | |
int x = 5*5; | |
} | |
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 Cell { | |
//Do we need to contractually obligate developers to only use a single instance of a component based on class? | |
//The difference is in using a List or a Map. | |
Collection<State> states; | |
//Given an enum of types: Text, 2D, JME3 | |
//We should keep track of the various views in a map. No two instances of a cell view should have the same type | |
Map<EnumViewType, CellView> views; | |
//The alternative here is to have a single view with view components | |
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 enum Singleton { | |
INSTANCE; | |
private Singleton() { } | |
} |
NewerOlder