Skip to content

Instantly share code, notes, and snippets.

@jeffwf
Created November 21, 2013 22:17
Show Gist options
  • Save jeffwf/7590748 to your computer and use it in GitHub Desktop.
Save jeffwf/7590748 to your computer and use it in GitHub Desktop.
public abstract class AllocatedAssetType {
public static List<AllocatedAssetType> getAllAllocatedAssetTypes() {...}
public static final Cash CASH = new Cash();
public static final class Cash extends AllocatedAssetType {
private Cash() {}
@Override
public String toString() {
return "cash";
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment