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