public class Kv extends HashMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Kv() |
Modifier and Type | Method and Description |
---|---|
static Kv |
by(Object key,
Object value) |
static Kv |
create() |
Kv |
delete(Object key) |
boolean |
equals(Object kv) |
static Kv |
fail()
Deprecated.
|
static Kv |
fail(Object key,
Object value)
Deprecated.
|
<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 |
isFail()
Deprecated.
|
boolean |
isFalse(Object key)
key 存在,并且 value 为 false,则返回 true
|
boolean |
isNull(Object key)
key 不存在,或者 key 存在但 value 为null
|
boolean |
isOk()
Deprecated.
|
boolean |
isTrue(Object key)
key 存在,并且 value 为 true,则返回 true
|
boolean |
notNull(Object key)
key 存在,并且 value 不为 null
|
static Kv |
ok()
Deprecated.
|
static Kv |
ok(Object key,
Object value)
Deprecated.
|
Kv |
set(Kv kv) |
Kv |
set(Map map) |
Kv |
set(Object key,
Object value) |
Kv |
setFail()
Deprecated.
|
Kv |
setOk()
Deprecated.
|
String |
toJson() |
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
hashCode, toString
public static Kv create()
@Deprecated public static Kv ok()
@Deprecated public static Kv ok(Object key, Object value)
@Deprecated public static Kv fail()
@Deprecated public static Kv fail(Object key, Object value)
@Deprecated public Kv setOk()
@Deprecated public Kv setFail()
@Deprecated public boolean isOk()
@Deprecated public boolean isFail()
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 kv)
equals
in interface Map
equals
in class AbstractMap
Copyright © 2018. All rights reserved.