Created
January 26, 2018 10:43
-
-
Save hokkun-dayo/64900bf3bec7523752394982047649ac to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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