@@ -61,33 +61,49 @@ trait ConverterBase {
61
61
62
62
def convertToByte [S : Type ](sourceValue : S ): Maybe [Byte ] = convert[Byte ](sourceValue)
63
63
64
+ def convertToByteOpt [S : Type ](sourceValue : S ): Option [Byte ] = convertOpt[Byte ](sourceValue)
65
+
64
66
def convertToByteEx [S : Type ](sourceValue : S ): Byte = convertEx[Byte ](sourceValue)
65
67
66
68
def convertToBoolean [S : Type ](sourceValue : S ): Maybe [Boolean ] = convert[Boolean ](sourceValue)
67
69
70
+ def convertToBooleanOpt [S : Type ](sourceValue : S ): Option [Boolean ] = convertOpt[Boolean ](sourceValue)
71
+
68
72
def convertToBooleanEx [S : Type ](sourceValue : S ): Boolean = convertEx[Boolean ](sourceValue)
69
73
70
74
def convertToShort [S : Type ](sourceValue : S ): Maybe [Short ] = convert[Short ](sourceValue)
71
75
76
+ def convertToShortOpt [S : Type ](sourceValue : S ): Option [Short ] = convertOpt[Short ](sourceValue)
77
+
72
78
def convertToShortEx [S : Type ](sourceValue : S ): Short = convertEx[Short ](sourceValue)
73
79
74
80
def convertToChar [S : Type ](sourceValue : S ): Maybe [Char ] = convert[Char ](sourceValue)
75
81
82
+ def convertToCharOpt [S : Type ](sourceValue : S ): Option [Char ] = convertOpt[Char ](sourceValue)
83
+
76
84
def convertToCharEx [S : Type ](sourceValue : S ): Char = convertEx[Char ](sourceValue)
77
85
78
86
def convertToInt [S : Type ](sourceValue : S ): Maybe [Int ] = convert[Int ](sourceValue)
79
87
88
+ def convertToIntOpt [S : Type ](sourceValue : S ): Option [Int ] = convertOpt[Int ](sourceValue)
89
+
80
90
def convertToIntEx [S : Type ](sourceValue : S ): Int = convertEx[Int ](sourceValue)
81
91
82
92
def convertToLong [S : Type ](sourceValue : S ): Maybe [Long ] = convert[Long ](sourceValue)
83
93
94
+ def convertToLongOpt [S : Type ](sourceValue : S ): Option [Long ] = convertOpt[Long ](sourceValue)
95
+
84
96
def convertToLongEx [S : Type ](sourceValue : S ): Long = convertEx[Long ](sourceValue)
85
97
86
98
def convertToFloat [S : Type ](sourceValue : S ): Maybe [Float ] = convert[Float ](sourceValue)
87
99
100
+ def convertToFloatOpt [S : Type ](sourceValue : S ): Option [Float ] = convertOpt[Float ](sourceValue)
101
+
88
102
def convertToFloatEx [S : Type ](sourceValue : S ): Float = convertEx[Float ](sourceValue)
89
103
90
104
def convertToDouble [S : Type ](sourceValue : S ): Maybe [Double ] = convert[Double ](sourceValue)
91
105
106
+ def convertToDoubleOpt [S : Type ](sourceValue : S ): Option [Double ] = convertOpt[Double ](sourceValue)
107
+
92
108
def convertToDoubleEx [S : Type ](sourceValue : S ): Double = convertEx[Double ](sourceValue)
93
109
}
0 commit comments