This repository was archived by the owner on Aug 17, 2019. It is now read-only.
File tree 1 file changed +23
-0
lines changed
src/main/scala/com/ckkloverdos/convert
1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -66,13 +66,36 @@ class Converters(selector: ConverterSelectionStrategy) extends ConverterBase {
66
66
}
67
67
68
68
def convertToByte [S : Type ](sourceValue : S ): Maybe [Byte ] = convert[Byte ](sourceValue)
69
+
70
+ def convertToByteEx [S : Type ](sourceValue : S ): Byte = convertEx[Byte ](sourceValue)
71
+
69
72
def convertToBoolean [S : Type ](sourceValue : S ): Maybe [Boolean ] = convert[Boolean ](sourceValue)
73
+
74
+ def convertToBooleanEx [S : Type ](sourceValue : S ): Boolean = convertEx[Boolean ](sourceValue)
75
+
70
76
def convertToShort [S : Type ](sourceValue : S ): Maybe [Short ] = convert[Short ](sourceValue)
77
+
78
+ def convertToShortEx [S : Type ](sourceValue : S ): Short = convertEx[Short ](sourceValue)
79
+
71
80
def convertToChar [S : Type ](sourceValue : S ): Maybe [Char ] = convert[Char ](sourceValue)
81
+
82
+ def convertToCharEx [S : Type ](sourceValue : S ): Char = convertEx[Char ](sourceValue)
83
+
72
84
def convertToInt [S : Type ](sourceValue : S ): Maybe [Int ] = convert[Int ](sourceValue)
85
+
86
+ def convertToIntEx [S : Type ](sourceValue : S ): Int = convertEx[Int ](sourceValue)
87
+
73
88
def convertToLong [S : Type ](sourceValue : S ): Maybe [Long ] = convert[Long ](sourceValue)
89
+
90
+ def convertToLongEx [S : Type ](sourceValue : S ): Long = convertEx[Long ](sourceValue)
91
+
74
92
def convertToFloat [S : Type ](sourceValue : S ): Maybe [Float ] = convert[Float ](sourceValue)
93
+
94
+ def convertToFloatEx [S : Type ](sourceValue : S ): Float = convertEx[Float ](sourceValue)
95
+
75
96
def convertToDouble [S : Type ](sourceValue : S ): Maybe [Double ] = convert[Double ](sourceValue)
97
+
98
+ def convertToDoubleEx [S : Type ](sourceValue : S ): Double = convertEx[Double ](sourceValue)
76
99
}
77
100
78
101
object Converters {
You can’t perform that action at this time.
0 commit comments