diff --git a/src/main/java/xyz/zhouxy/plusone/commons/jdbc/DbRecord.java b/src/main/java/xyz/zhouxy/plusone/commons/jdbc/DbRecord.java index 0caa54e..9b8e544 100644 --- a/src/main/java/xyz/zhouxy/plusone/commons/jdbc/DbRecord.java +++ b/src/main/java/xyz/zhouxy/plusone/commons/jdbc/DbRecord.java @@ -47,31 +47,31 @@ public class DbRecord extends AbstractMapWrapper { } public Optional getValueAsString(String key) { - return this.getAndConvert(key); + return this.getAndConvert(key); } public List getValueAsList(String key) { return this.>getAndConvert(key) - .>map(l -> (l instanceof List) ? (List) l : new ArrayList<>(l)) - .orElse(Collections.emptyList()); + .map(l -> (l instanceof List) ? (List) l : new ArrayList<>(l)) + .orElse(Collections.emptyList()); } public Set getValueAsSet(String key) { return this.>getAndConvert(key) - .>map(l -> (l instanceof Set) ? (Set) l : new HashSet<>(l)) + .map(l -> (l instanceof Set) ? (Set) l : new HashSet<>(l)) .orElse(Collections.emptySet()); } public OptionalInt getValueAsInt(String key) { - return OptionalUtil.toOptionalInt(this.getAndConvert(key)); + return OptionalUtil.toOptionalInt(this.getAndConvert(key)); } public OptionalLong getValueAsLong(String key) { - return OptionalUtil.toOptionalLong(this.getAndConvert(key)); + return OptionalUtil.toOptionalLong(this.getAndConvert(key)); } public OptionalDouble getValueAsDouble(String key) { - return OptionalUtil.toOptionalDouble(this.getAndConvert(key)); + return OptionalUtil.toOptionalDouble(this.getAndConvert(key)); } @Override