Example #1
0
 @Override
 public long getLong(final String key) {
   final Number number = this.extractNumber(this.findLastTag(key));
   if (number == null) {
     return 0L;
   }
   return number.longValue();
 }
Example #2
0
 @Override
 public double getDouble(final String key) {
   final Number number = this.extractNumber(this.findLastTag(key));
   if (number == null) {
     return 0.0;
   }
   return number.doubleValue();
 }
Example #3
0
 @Override
 public int getInt(final String key) {
   final Number number = this.extractNumber(this.findLastTag(key));
   if (number == null) {
     return 0;
   }
   return number.intValue();
 }
Example #4
0
 @Override
 public boolean getBoolean(final String key) {
   final Number number = this.extractNumber(this.findLastTag(key));
   return number != null && number.byteValue() >= 1;
 }