Skip to content

Instantly share code, notes, and snippets.

@DeepSpawn
Last active June 27, 2016 22:02
Show Gist options
  • Save DeepSpawn/d050a43f2eebc3e9c6a1914a6ffd7ffd to your computer and use it in GitHub Desktop.
Save DeepSpawn/d050a43f2eebc3e9c6a1914a6ffd7ffd to your computer and use it in GitHub Desktop.
...
public static final class Jobj extends Json {
private final Map<String, Json> members;
public Jobj(final Map<String, Json> members) {
this.members = members;
}
public Map<String, Json> getMembers() {
return members;
}
@Override
public <T> T match(final Function<Jseq, T> a,
final Function<Jobj, T> b,
final Function<Jnumber, T> c,
final Function<Jstring, T> d,
final Function<Jboolean, T> e,
final Function<JNull, T> f) {
return b.apply(this);
}
}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment