Rename BDF methods.

This commit is contained in:
akwizgran
2016-02-29 11:57:42 +00:00
parent 46e7a52c22
commit e3374b7584
9 changed files with 31 additions and 31 deletions

View File

@@ -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();

View File

@@ -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();