Last active
February 6, 2018 10:53
-
-
Save wreulicke/7a5dcf9341f33a4d619d75a53ade77cc 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
@JsonTypeInfo(use = Id.NAME, property = "type") | |
@JsonSubTypes({ | |
@JsonSubTypes.Type(name = Event.HOGE_NAME, value = HogeEvent.class), | |
@JsonSubTypes.Type(name = Event.FUGA_NAME, value = FugaEvent.class) | |
}) | |
public interface Event { | |
String HOGE_NAME = "hoge"; | |
String FUGA_NAME = "fuga"; | |
// 消した --> public void doSomething(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment