mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 03:09:04 +01:00
Rename BDF methods.
This commit is contained in:
@@ -46,7 +46,7 @@ public class BdfDictionary extends Hashtable<String, Object> {
|
||||
return defaultValue;
|
||||
}
|
||||
|
||||
public Long getInteger(String key) throws FormatException {
|
||||
public Long getLong(String key) throws FormatException {
|
||||
Object o = get(key);
|
||||
if (o instanceof Long) return (Long) o;
|
||||
if (o instanceof Integer) return ((Integer) o).longValue();
|
||||
@@ -55,7 +55,7 @@ public class BdfDictionary extends Hashtable<String, Object> {
|
||||
throw new FormatException();
|
||||
}
|
||||
|
||||
public Long getInteger(String key, Long defaultValue) {
|
||||
public Long getLong(String key, Long defaultValue) {
|
||||
Object o = get(key);
|
||||
if (o instanceof Long) return (Long) o;
|
||||
if (o instanceof Integer) return ((Integer) o).longValue();
|
||||
@@ -64,14 +64,14 @@ public class BdfDictionary extends Hashtable<String, Object> {
|
||||
return defaultValue;
|
||||
}
|
||||
|
||||
public Double getFloat(String key) throws FormatException {
|
||||
public Double getDouble(String key) throws FormatException {
|
||||
Object o = get(key);
|
||||
if (o instanceof Double) return (Double) o;
|
||||
if (o instanceof Float) return ((Float) o).doubleValue();
|
||||
throw new FormatException();
|
||||
}
|
||||
|
||||
public Double getFloat(String key, Double defaultValue) {
|
||||
public Double getDouble(String key, Double defaultValue) {
|
||||
Object o = get(key);
|
||||
if (o instanceof Double) return (Double) o;
|
||||
if (o instanceof Float) return ((Float) o).doubleValue();
|
||||
|
||||
@@ -39,7 +39,7 @@ public class BdfList extends Vector<Object> {
|
||||
return defaultValue;
|
||||
}
|
||||
|
||||
public Long getInteger(int index) throws FormatException {
|
||||
public Long getLong(int index) throws FormatException {
|
||||
Object o = get(index);
|
||||
if (o instanceof Long) return (Long) o;
|
||||
if (o instanceof Integer) return ((Integer) o).longValue();
|
||||
@@ -48,7 +48,7 @@ public class BdfList extends Vector<Object> {
|
||||
throw new FormatException();
|
||||
}
|
||||
|
||||
public Long getInteger(int index, Long defaultValue) {
|
||||
public Long getLong(int index, Long defaultValue) {
|
||||
Object o = get(index);
|
||||
if (o instanceof Long) return (Long) o;
|
||||
if (o instanceof Integer) return ((Integer) o).longValue();
|
||||
@@ -57,14 +57,14 @@ public class BdfList extends Vector<Object> {
|
||||
return defaultValue;
|
||||
}
|
||||
|
||||
public Double getFloat(int index) throws FormatException {
|
||||
public Double getDouble(int index) throws FormatException {
|
||||
Object o = get(index);
|
||||
if (o instanceof Double) return (Double) o;
|
||||
if (o instanceof Float) return ((Float) o).doubleValue();
|
||||
throw new FormatException();
|
||||
}
|
||||
|
||||
public Double getFloat(int index, Double defaultValue) {
|
||||
public Double getDouble(int index, Double defaultValue) {
|
||||
Object o = get(index);
|
||||
if (o instanceof Double) return (Double) o;
|
||||
if (o instanceof Float) return ((Float) o).doubleValue();
|
||||
|
||||
Reference in New Issue
Block a user