Skip to content

Commit

Permalink
1.更新部分代码
Browse files Browse the repository at this point in the history
Former-commit-id: ee1a2d7
Former-commit-id: 0e13abc
  • Loading branch information
afkT committed Dec 30, 2021
1 parent f4885f0 commit 5d4470e
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions lib/DevAssist/src/main/java/dev/base/DevIntent.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* 根据 DevFinal.STR 自动生成通用方法
* <p></p>
* 自动读取 Intent、Bundle 数据进行填充
* 仅支持 String、Boolean、Integer、Long、Double、Float 类型
* 仅支持 String、Integer、Long、Double、Float、Boolean 类型
* 并自动存储为 String
* <p></p>
* 通过 {@link #insert()} 可将 Map 数据插入到 Intent、Bundle 中
Expand Down Expand Up @@ -136,8 +136,6 @@ public DevIntent reader(final Bundle bundle) {
}
if (value instanceof String) {
put(key, String.valueOf(value));
} else if (value instanceof Boolean) {
put(key, String.valueOf(value));
} else if (value instanceof Integer) {
put(key, String.valueOf(value));
} else if (value instanceof Long) {
Expand All @@ -146,6 +144,8 @@ public DevIntent reader(final Bundle bundle) {
put(key, String.valueOf(value));
} else if (value instanceof Float) {
put(key, String.valueOf(value));
} else if (value instanceof Boolean) {
put(key, String.valueOf(value));
}
}
}
Expand Down Expand Up @@ -174,21 +174,21 @@ public boolean containsKey(final String key) {
}

/**
* 对应 Key 保存的 Value 是否为 null
* @param key 保存的 key
* 是否存在 Value
* @param value 保存的 value
* @return {@code true} yes, {@code false} no
*/
public boolean isNullValue(final String key) {
return get(key) == null;
public boolean containsValue(final String value) {
return mDataMaps.containsValue(value);
}

/**
* 是否存在 Value
* @param value 保存的 value
* 对应 Key 保存的 Value 是否为 null
* @param key 保存的 key
* @return {@code true} yes, {@code false} no
*/
public boolean containsValue(final String value) {
return mDataMaps.containsValue(value);
public boolean isNullValue(final String key) {
return get(key) == null;
}

/**
Expand Down

0 comments on commit 5d4470e

Please sign in to comment.