Skip to content

Instantly share code, notes, and snippets.

@chibenwa
Created July 2, 2019 04:23
Show Gist options
  • Save chibenwa/577fcc7879d1108eea673833864c10f4 to your computer and use it in GitHub Desktop.
Save chibenwa/577fcc7879d1108eea673833864c10f4 to your computer and use it in GitHub Desktop.
@JsonIgnore
@Override
public <T> List<T> resolve(ResultReferencesPath path, Class<T> clazz) {
Preconditions.checkArgument(path.getPath().equals("/messageIds"), "only messageIds is supported");
ResultReferenceTypeMismatchException.assertValidTypes(MessageId.class, clazz);
return (List<T>) getMessageIds();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment