public class Okv extends LinkedHashMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Okv() |
Modifier and Type | Method and Description |
---|---|
static Okv |
by(Object key,
Object value) |
static Okv |
create() |
Okv |
delete(Object key) |
boolean |
equals(Object okv) |
<T> T |
getAs(Object key) |
Boolean |
getBoolean(Object key) |
Integer |
getInt(Object key) |
Long |
getLong(Object key) |
Number |
getNumber(Object key) |
String |
getStr(Object key) |
boolean |
isFalse(Object key)
key 存在,并且 value 为 false,则返回 true
|
boolean |
isNull(Object key)
key 不存在,或者 key 存在但 value 为null
|
boolean |
isTrue(Object key)
key 存在,并且 value 为 true,则返回 true
|
boolean |
notNull(Object key)
key 存在,并且 value 不为 null
|
Okv |
set(Map map) |
Okv |
set(Object key,
Object value) |
Okv |
set(Okv okv) |
String |
toJson() |
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
hashCode, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, containsKey, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
public static Okv create()
public <T> T getAs(Object key)
public boolean notNull(Object key)
public boolean isNull(Object key)
public boolean isTrue(Object key)
public boolean isFalse(Object key)
public String toJson()
public boolean equals(Object okv)
equals
in interface Map
equals
in class AbstractMap
Copyright © 2018. All rights reserved.