1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package com.ancientprogramming.fixedformat4j.format.data;
17
18 import com.ancientprogramming.fixedformat4j.annotation.FixedFormatBoolean;
19 import static com.ancientprogramming.fixedformat4j.annotation.FixedFormatBoolean.*;
20
21
22
23
24
25
26
27 public class FixedFormatBooleanData {
28
29 public static final FixedFormatBooleanData DEFAULT = new FixedFormatBooleanData(TRUE_VALUE, FALSE_VALUE);
30
31 private String trueValue;
32
33 private String falseValue;
34
35 public FixedFormatBooleanData(String trueValue, String falseValue) {
36 this.trueValue = trueValue;
37 this.falseValue = falseValue;
38 }
39
40 public String getTrueValue() {
41 return trueValue;
42 }
43
44 public String getFalseValue() {
45 return falseValue;
46 }
47
48
49 public String toString() {
50 return "FixedFormatBooleanData{" +
51 "trueValue='" + trueValue + "'" +
52 ", falseValue='" + falseValue + "'" +
53 '}';
54 }
55 }