@JsonProperty @JsonSerialize(using = CommaListJoinSerializer.class) public List<String> getMetrics() { return metrics; }
@JsonDeserialize(using = RangeBoundValueDeserializer.class) @JsonSerialize(using = RangeBoundValueSerializer.class) public class RangeBoundValue { private final List<Object> values; public RangeBoundValue(List<Object> values) { this.values = ImmutableList.copyOf(values); } public List<Object> getValues() { return values; } }
@JsonProperty @JsonSerialize(keyUsing = ColumnStatisticMetadataKeySerializer.class) @JsonDeserialize(keyUsing = ColumnStatisticMetadataKeyDeserializer.class) public Map<ColumnStatisticMetadata, T> getColumnStatistics() { return columnStatistics; }
@JsonProperty @JsonSerialize( using = JacksonPeriodTypeSerializer.class ) @JsonDeserialize( using = JacksonPeriodTypeDeserializer.class ) @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) public PeriodType getExpiryPeriodType() { return expiryPeriodType; }
/** * Static (not live-reloaded) portions of TimeLock's configuration. */ @JsonDeserialize(as = ImmutableTimeLockInstallConfiguration.class) @JsonSerialize(as = ImmutableTimeLockInstallConfiguration.class) @Value.Immutable @JsonIgnoreProperties(value = "asyncLock") public interface TimeLockInstallConfiguration { PaxosInstallConfiguration paxos(); ClusterConfiguration cluster(); @Value.Default default TsBoundPersisterConfiguration timestampBoundPersistence() { return ImmutablePaxosTsBoundPersisterConfiguration.builder().build(); } }
@JsonProperty( "category" ) @JsonSerialize( as = BaseIdentifiableObject.class ) @JacksonXmlProperty( localName = "category", namespace = DxfNamespaces.DXF_2_0 ) public Category getDimension() { return dimension; }
@EqualsAndHashCode @JsonInclude(JsonInclude.Include.NON_NULL) @JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"}, ignoreUnknown = true) public class RequestDetailsLogger { private final HttpServletRequest request = ServletContextHolder.getRequest(); @JsonProperty("request_id") private String requestId = ServletContextHolder.fetchRequestId(); @JsonProperty("url") private String url = request.getRequestURL().toString(); @JsonProperty("method") private String method = request.getMethod(); @JsonProperty("request_body") @JsonSerialize(using = StringToMapSerializer.class) private String requestBody = (String) ServletContextHolder.getRequest().getAttribute(RequestAttributeConst.REQUEST_BODY_KEY); @JsonProperty("request_time") @JsonSerialize(using = OffsetDateTimeToIso8601Serializer.class) private OffsetDateTime requestTime = OffsetDateTime.now(); @JsonProperty("response_time") @JsonSerialize(using = OffsetDateTimeToIso8601Serializer.class) private OffsetDateTime responseTime;
/** * @author Zhao Junjian */ @Getter @Setter @AllArgsConstructor @ToString @EqualsAndHashCode @JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class) @JsonInclude(JsonInclude.Include.NON_NULL) @JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"}, ignoreUnknown = true) public class Participant implements Serializable { private static final long serialVersionUID = -8013238614014494468L; @ApiModelProperty(value = "发起确认操作的URI", required = true, example = "http://www.example.com/part/123") private String uri; @ApiModelProperty(value = "过期时间, ISO标准", required = true, example = "2017-03-20T14:00:41+08:00") @JsonSerialize(using = OffsetDateTimeToIso8601Serializer.class) private OffsetDateTime expireTime; }
@JsonIgnoreProperties(ignoreUnknown = true) public class XmlMessageHeader implements Serializable { @JacksonXmlProperty(localName = "MsgType") @JacksonXmlCData protected MsgType msgType; @JacksonXmlProperty(localName = "ToUserName") @JacksonXmlCData private String toUser; @JacksonXmlProperty(localName = "FromUserName") @JacksonXmlCData private String fromUser; @JacksonXmlProperty(localName = "CreateTime") @JsonDeserialize(using = DateDeserializer.class) @JsonSerialize(using = DateSerializer.class) private Date createTime;
@JsonSerialize @Immutable public interface AbstractSomething extends IHaveGetContentAndWithId<MySomethingContent, Something> { // this override is not needed with 2.2, hooray! \o/ // @Override // MySomethingContent getContent(); // without this override it generates the withId method that returns T instead of Something for // the Json class ;( // @Override // Something withId(int id); }
@JsonProperty @JsonSerialize( using = JacksonPeriodSerializer.class ) @JsonDeserialize( using = JacksonPeriodDeserializer.class ) @JacksonXmlProperty( localName = "period", namespace = DxfNamespaces.DXF_2_0 ) public Period getPeriod() { return period; }
@JsonProperty @JsonSerialize(using = CommaListJoinSerializer.class) public List<String> getDimensions() { return dimensions; }
@JsonProperty(value = "time") @JsonDeserialize(using = com.spotify.docker.client.jackson.UnixTimestampDeserializer.class) @JsonSerialize(using = com.spotify.docker.client.jackson.UnixTimestampSerializer.class) @Override public Date time() { return time; }
@JsonSerialize(as = ImmutableFailEvent.class) @JsonDeserialize(as = ImmutableFailEvent.class) @JsonIgnoreProperties(ignoreUnknown = true) @JsonTypeName(FailEvent.TYPE) @Value.Immutable public abstract class FailEvent implements Event { public static final String TYPE = "fail"; @Override public abstract long time(); public abstract int process(); public abstract String error(); @Override public void accept(EventVisitor visitor) { visitor.visit(this); } }
@JsonProperty @JsonSerialize( as = BaseIdentifiableObject.class ) @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) public Map getMap() { return map; }
@Value.Immutable(builder = false) @JsonSerialize(as = ImmutableConstructorJacksonMapped.class) @JsonDeserialize(as = ImmutableConstructorJacksonMapped.class) public interface ConstructorJacksonMapped { @Value.Parameter @JsonProperty("X") int instance(); @Value.Parameter String bal(); }
/** * @author Zhao Junjian */ @Getter @Setter @AllArgsConstructor @ToString @EqualsAndHashCode @JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class) @JsonInclude(JsonInclude.Include.NON_NULL) @JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"}, ignoreUnknown = true) public class Participant implements Serializable { private static final long serialVersionUID = -8013238614014494468L; @ApiModelProperty(value = "发起确认操作的URI", required = true, example = "http://www.example.com/part/123") private String uri; @ApiModelProperty(value = "过期时间, ISO标准", required = true, example = "2017-03-20T14:00:41+08:00") @JsonSerialize(using = OffsetDateTimeToIso8601Serializer.class) private OffsetDateTime expireTime; }
@JsonSerialize @Value.Style(depluralize = true) @Value.Immutable @Serial.Structural public abstract class ClazzSerializable implements Serializable { private static final long serialVersionUID = -8909894915412895697L; public abstract Object obj(); }
@JsonProperty @JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 ) @JsonSerialize( using = CustomLastUpdatedUserSerializer.class ) @JsonDeserialize public User getLastUpdatedBy() { return lastUpdatedBy; }
@JsonProperty("created") @JsonSerialize(using = InstantSerializer.class) public Instant getAcceptedTime() { return acceptedTime; }