View Javadoc
1   /*
2    * JavaBean Tester (https://github.com/hazendaz/javabean-tester)
3    *
4    * Copyright 2012-2024 Hazendaz.
5    *
6    * All rights reserved. This program and the accompanying materials
7    * are made available under the terms of The Apache Software License,
8    * Version 2.0 which accompanies this distribution, and is available at
9    * http://www.apache.org/licenses/LICENSE-2.0.txt
10   *
11   * Contributors:
12   *     CodeBox (Rob Dawson).
13   *     Hazendaz (Jeremy Landis).
14   */
15  package com.codebox.bean;
16  
17  import java.math.BigDecimal;
18  import java.time.Instant;
19  import java.time.LocalDate;
20  import java.time.LocalDateTime;
21  import java.time.LocalTime;
22  import java.time.OffsetDateTime;
23  import java.time.ZonedDateTime;
24  import java.util.Date;
25  import java.util.List;
26  import java.util.Map;
27  import java.util.TreeSet;
28  import java.util.UUID;
29  import java.util.concurrent.ConcurrentMap;
30  
31  import lombok.AccessLevel;
32  import lombok.Getter;
33  import lombok.Value;
34  
35  /**
36   * The Class SampleValueObject.
37   *
38   * <p>
39   * From Lombok docs: https://projectlombok.org/features/Value
40   *
41   * <p>
42   * <code>@Value</code> is the immutable variant of <code>@Data</code>; all fields are made and final by default, and
43   * setters are not generated. The class itself is also made final by default, because immutability is not something that
44   * can be forced onto a subclass.
45   */
46  @Value
47  public class SampleValueObject {
48  
49      /** The empty bean. */
50      EmptyBean emptyBean;
51  
52      /** The sample depth bean. */
53      SampleDepthBean sampleDepthBean;
54  
55      /** The list. */
56      List<String> list;
57  
58      /** The map. */
59      Map<String, String> map;
60  
61      /** The concurrent map. */
62      ConcurrentMap<String, String> concurrentMap;
63  
64      /** The tree set. */
65      TreeSet<String> treeSet;
66  
67      /** The string. */
68      String string;
69  
70      /** The string array. */
71      String[] stringArray;
72  
73      /** The boolean wrapper. */
74      Boolean booleanWrapper;
75  
76      /** The int wrapper. */
77      Integer intWrapper;
78  
79      /** The long wrapper. */
80      Long longWrapper;
81  
82      /** The double wrapper. */
83      Double doubleWrapper;
84  
85      /** The float wrapper. */
86      Float floatWrapper;
87  
88      /** The character wrapper. */
89      Character characterWrapper;
90  
91      /** The byte wrapper. */
92      Byte byteWrapper;
93  
94      /** The byte array. */
95      Byte[] byteArray;
96  
97      /** The boolean primitive. */
98      boolean booleanPrimitive;
99  
100     /** The int primitive. */
101     int intPrimitive;
102 
103     /** The long primitive. */
104     long longPrimitive;
105 
106     /** The double primitive. */
107     double doublePrimitive;
108 
109     /** The float primitive. */
110     float floatPrimitive;
111 
112     /** The char primitive. */
113     char charPrimitive;
114 
115     /** The byte primitive. */
116     byte bytePrimitive;
117 
118     /** The big decimal. */
119     BigDecimal bigDecimal;
120 
121     /** The uuid. */
122     UUID uuid;
123 
124     /** The instant. */
125     Instant instant;
126 
127     /** The date. */
128     Date date;
129 
130     /** The Local Date. */
131     LocalDate localDate;
132 
133     /** The Local Date Time. */
134     LocalDateTime localDateTime;
135 
136     /** The Local Time. */
137     LocalTime localTime;
138 
139     /** The Offset Date Time. */
140     OffsetDateTime offsetDateTime;
141 
142     /** The Zoned Date Time. */
143     ZonedDateTime zonedDateTime;
144 
145     /** The Boolean wrapper with is/setter style (non lombok - java metro style). */
146     @Getter(AccessLevel.NONE)
147     Boolean booleanWrapperIsSetter;
148 }