aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before/JacksonBuilderSingular.java
blob: a5afdc42ca8bd881138247128545e98a02598f80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//version 8:
import java.util.List;
import java.util.Map;

import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;

import lombok.Builder;
import lombok.Singular;
import lombok.extern.jackson.Jacksonized;

@Jacksonized
@Builder
public class JacksonBuilderSingular {
	@JsonAnySetter
	@Singular("any")
	private Map<String, Object> any;

	@JsonProperty("v_a_l_u_e_s")
	@Singular
	private List<String> values;

	@JsonAnySetter
	@Singular("guavaAny")
	private ImmutableMap<String, Object> guavaAny;

	@JsonProperty("guava_v_a_l_u_e_s")
	@Singular
	private ImmutableList<String> guavaValues;
}