Skip to content

Instantly share code, notes, and snippets.

@hokkun-dayo
Created January 26, 2018 10:43
Show Gist options
  • Save hokkun-dayo/64900bf3bec7523752394982047649ac to your computer and use it in GitHub Desktop.
Save hokkun-dayo/64900bf3bec7523752394982047649ac to your computer and use it in GitHub Desktop.
interface EnumInterface {
}
enum Test1 implements EnumInterface {
Test1EnumA,
Test1EnumB
}
enum Test2 implements EnumInterface {
Test2EnumA,
Test2EnumB,
Test3EnumC
}
class ObjectFromJson {
private EnumInterface type;
}
// json
{
"type": "Test1EnumA"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment