@@ -197,7 +197,7 @@ public byte getByte(String key) {
197
197
public byte getByte (String key , byte def ) {
198
198
DataType <?> dataType = get (key );
199
199
if (dataType instanceof ByteType ) {
200
- return ((ByteType ) dataType ).getValue ();
200
+ return ((ByteType ) dataType ).getByteValue ();
201
201
}
202
202
return def ;
203
203
}
@@ -209,7 +209,7 @@ public short getShort(String key) {
209
209
public short getShort (String key , short def ) {
210
210
DataType <?> dataType = get (key );
211
211
if (dataType instanceof ShortType ) {
212
- return ((ShortType ) dataType ).getValue ();
212
+ return ((ShortType ) dataType ).getShortValue ();
213
213
}
214
214
return def ;
215
215
}
@@ -221,7 +221,7 @@ public int getInt(String key) {
221
221
public int getInt (String key , int def ) {
222
222
DataType <?> dataType = get (key );
223
223
if (dataType instanceof IntType ) {
224
- return ((IntType ) dataType ).getValue ();
224
+ return ((IntType ) dataType ).getIntValue ();
225
225
}
226
226
return def ;
227
227
}
@@ -233,7 +233,7 @@ public long getLong(String key) {
233
233
public long getLong (String key , long def ) {
234
234
DataType <?> dataType = get (key );
235
235
if (dataType instanceof LongType ) {
236
- return ((LongType ) dataType ).getValue ();
236
+ return ((LongType ) dataType ).getLongValue ();
237
237
}
238
238
return def ;
239
239
}
@@ -257,7 +257,7 @@ public float getFloat(String key) {
257
257
public float getFloat (String key , float def ) {
258
258
DataType <?> dataType = get (key );
259
259
if (dataType instanceof FloatType ) {
260
- return ((FloatType ) dataType ).getValue ();
260
+ return ((FloatType ) dataType ).getFloatValue ();
261
261
}
262
262
return def ;
263
263
}
@@ -269,7 +269,7 @@ public double getDouble(String key) {
269
269
public double getDouble (String key , double def ) {
270
270
DataType <?> dataType = get (key );
271
271
if (dataType instanceof DoubleType ) {
272
- return ((DoubleType ) dataType ).getValue ();
272
+ return ((DoubleType ) dataType ).getDoubleValue ();
273
273
}
274
274
return def ;
275
275
}
@@ -293,7 +293,7 @@ public char getChar(String key) {
293
293
public char getChar (String key , char def ) {
294
294
DataType <?> dataType = get (key );
295
295
if (dataType instanceof CharType ) {
296
- return ((CharType ) dataType ).getValue ();
296
+ return ((CharType ) dataType ).getCharValue ();
297
297
}
298
298
return def ;
299
299
}
@@ -305,7 +305,7 @@ public boolean getBoolean(String key) {
305
305
public boolean getBoolean (String key , boolean def ) {
306
306
DataType <?> dataType = get (key );
307
307
if (dataType instanceof BooleanType ) {
308
- return ((BooleanType ) dataType ).getValue ();
308
+ return ((BooleanType ) dataType ).getBooleanValue ();
309
309
}
310
310
return def ;
311
311
}
0 commit comments