View Javadoc
1   /*
2    * Copyright 2018 Andrew Rucker Jones.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package com.opencsv.bean.mocks.number;
17  
18  import com.opencsv.bean.CsvBindByName;
19  import com.opencsv.bean.CsvNumber;
20  
21  public class NumberMockHeader {
22  
23      @CsvBindByName
24      @CsvNumber("byte: #")
25      private byte primitiveByte;
26  
27      @CsvBindByName(locale = "ja-JP")
28      @CsvNumber("¤ ¤ ¤ #0 ¤ ¤ ¤")
29      private Byte wrappedByte;
30  
31      @CsvBindByName
32      @CsvNumber("#")
33      private short primitiveShort;
34  
35      @CsvBindByName
36      @CsvNumber("#0")
37      private Short wrappedShort;
38  
39      @CsvBindByName(locale = "de-DE")
40      @CsvNumber("0.000")
41      private int primitiveInteger;
42  
43      @CsvBindByName
44      @CsvNumber("#")
45      private Integer wrappedInteger;
46  
47      @CsvBindByName
48      @CsvNumber("#")
49      private long primitiveLong;
50  
51      @CsvBindByName
52      @CsvNumber("#")
53      private Long wrappedLong;
54  
55      @CsvBindByName
56      @CsvNumber("0.0#E0")
57      private float primitiveFloat;
58  
59      @CsvBindByName(locale = "de-DE")
60      @CsvNumber("#0,0#%")
61      private Float wrappedFloat;
62  
63      @CsvBindByName
64      @CsvNumber("#0.000#")
65      private double primitiveDouble;
66  
67      @CsvBindByName
68      @CsvNumber("#.#")
69      private Double wrappedDouble;
70  
71      public byte getPrimitiveByte() {
72          return primitiveByte;
73      }
74  
75      public void setPrimitiveByte(byte primitiveByte) {
76          this.primitiveByte = primitiveByte;
77      }
78  
79      public Byte getWrappedByte() {
80          return wrappedByte;
81      }
82  
83      public void setWrappedByte(Byte wrappedByte) {
84          this.wrappedByte = wrappedByte;
85      }
86  
87      public short getPrimitiveShort() {
88          return primitiveShort;
89      }
90  
91      public void setPrimitiveShort(short primitiveShort) {
92          this.primitiveShort = primitiveShort;
93      }
94  
95      public Short getWrappedShort() {
96          return wrappedShort;
97      }
98  
99      public void setWrappedShort(Short wrappedShort) {
100         this.wrappedShort = wrappedShort;
101     }
102 
103     public int getPrimitiveInteger() {
104         return primitiveInteger;
105     }
106 
107     public void setPrimitiveInteger(int primitiveInteger) {
108         this.primitiveInteger = primitiveInteger;
109     }
110 
111     public Integer getWrappedInteger() {
112         return wrappedInteger;
113     }
114 
115     public void setWrappedInteger(Integer wrappedInteger) {
116         this.wrappedInteger = wrappedInteger;
117     }
118 
119     public long getPrimitiveLong() {
120         return primitiveLong;
121     }
122 
123     public void setPrimitiveLong(long primitiveLong) {
124         this.primitiveLong = primitiveLong;
125     }
126 
127     public Long getWrappedLong() {
128         return wrappedLong;
129     }
130 
131     public void setWrappedLong(Long wrappedLong) {
132         this.wrappedLong = wrappedLong;
133     }
134 
135     public float getPrimitiveFloat() {
136         return primitiveFloat;
137     }
138 
139     public void setPrimitiveFloat(float primitiveFloat) {
140         this.primitiveFloat = primitiveFloat;
141     }
142 
143     public Float getWrappedFloat() {
144         return wrappedFloat;
145     }
146 
147     public void setWrappedFloat(Float wrappedFloat) {
148         this.wrappedFloat = wrappedFloat;
149     }
150 
151     public double getPrimitiveDouble() {
152         return primitiveDouble;
153     }
154 
155     public void setPrimitiveDouble(double primitiveDouble) {
156         this.primitiveDouble = primitiveDouble;
157     }
158 
159     public Double getWrappedDouble() {
160         return wrappedDouble;
161     }
162 
163     public void setWrappedDouble(Double wrappedDouble) {
164         this.wrappedDouble = wrappedDouble;
165     }
166 }