From c87cb8843904d3a15c006f135e7093d524c9f62d Mon Sep 17 00:00:00 2001 From: ZhouXY108 Date: Wed, 31 May 2023 20:00:44 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=80=E5=8C=96=E4=BB=A3=E7=A0=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xyz/zhouxy/plusone/commons/jdbc/DbRecord.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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