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.Data;
33  import lombok.Getter;
34  
35  /**
36   * Instantiates a new sample depth bean.
37   */
38  @Data
39  public class SampleDepthBean {
40  
41      /** The list. */
42      private List<String> list;
43  
44      /** The map. */
45      private Map<String, String> map;
46  
47      /** The concurrent map. */
48      private ConcurrentMap<String, String> concurrentMap;
49  
50      /** The tree set. */
51      private TreeSet<String> treeSet;
52  
53      /** The string. */
54      private String string;
55  
56      /** The string array. */
57      private String[] stringArray;
58  
59      /** The boolean wrapper. */
60      private Boolean booleanWrapper;
61  
62      /** The int wrapper. */
63      private Integer intWrapper;
64  
65      /** The long wrapper. */
66      private Long longWrapper;
67  
68      /** The double wrapper. */
69      private Double doubleWrapper;
70  
71      /** The float wrapper. */
72      private Float floatWrapper;
73  
74      /** The character wrapper. */
75      private Character characterWrapper;
76  
77      /** The byte wrapper. */
78      private Byte byteWrapper;
79  
80      /** The byte array. */
81      private Byte[] byteArray;
82  
83      /** The boolean primitive. */
84      private boolean booleanPrimitive;
85  
86      /** The int primitive. */
87      private int intPrimitive;
88  
89      /** The long primitive. */
90      private long longPrimitive;
91  
92      /** The double primitive. */
93      private double doublePrimitive;
94  
95      /** The float primitive. */
96      private float floatPrimitive;
97  
98      /** The char primitive. */
99      private char charPrimitive;
100 
101     /** The byte primitive. */
102     private byte bytePrimitive;
103 
104     /** The big decimal. */
105     private BigDecimal bigDecimal;
106 
107     /** The uuid. */
108     private UUID uuid;
109 
110     /** The instant. */
111     private Instant instant;
112 
113     /** The date. */
114     private Date date;
115 
116     /** The Local Date. */
117     private LocalDate localDate;
118 
119     /** The Local Date Time. */
120     private LocalDateTime localDateTime;
121 
122     /** The Local Time. */
123     private LocalTime localTime;
124 
125     /** The Offset Date Time. */
126     private OffsetDateTime offsetDateTime;
127 
128     /** The Zoned Date Time. */
129     private ZonedDateTime zonedDateTime;
130 
131     /** The Boolean wrapper with is/setter style (non lombok - java metro style). */
132     @Getter(AccessLevel.NONE)
133     private Boolean booleanWrapperIsSetter;
134 
135     /** SampleBean nesting would not cause stack overflow as no no-arg constructor. */
136     private SampleBean sampleBean;
137 
138     /** SampleDepthBean nesting would cause stack overflow. Fixed by not deeply testing in value builder. */
139     private SampleDepthBean sampleDepthBean;
140 }