io.serialized.client.projection.EventSelector Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of serialized-client Show documentation
Show all versions of serialized-client Show documentation
Java Client for Serialized APIs
The newest version!
package io.serialized.client.projection;
import static java.lang.String.format;
public class EventSelector {
private final String selector;
public EventSelector(String selector) {
this.selector = selector;
}
public static EventSelector eventSelector(String fieldName) {
return new EventSelector(format("$.event.%s", fieldName));
}
public String selector() {
return selector;
}
}