Package org.nervos.muta.client.type
Class ParsedEvent<T>
- java.lang.Object
-
- org.nervos.muta.client.type.ParsedEvent<T>
-
public class ParsedEvent<T> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ParsedEvent(java.lang.String service, java.lang.String name, java.lang.String data, com.fasterxml.jackson.core.type.TypeReference<T> tr)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <R> ParsedEvent<R>
fromEvent(Event event, com.fasterxml.jackson.core.type.TypeReference<R> tr)
boolean
isMatch(java.lang.String service, java.lang.String name)
-
-
-
Constructor Detail
-
ParsedEvent
public ParsedEvent(java.lang.String service, java.lang.String name, java.lang.String data, com.fasterxml.jackson.core.type.TypeReference<T> tr) throws com.fasterxml.jackson.core.JsonProcessingException
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-
Method Detail
-
fromEvent
public static <R> ParsedEvent<R> fromEvent(Event event, com.fasterxml.jackson.core.type.TypeReference<R> tr) throws com.fasterxml.jackson.core.JsonProcessingException
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
isMatch
public boolean isMatch(java.lang.String service, java.lang.String name)
-
-