| Modifier and Type | Field and Description |
|---|---|
| public static final String | NONE_VALUE
Use this if you want to indicate that the value is missing. |
| Modifier and Type | Method and Description |
|---|---|
| public default int | compareTo(KeyValue
the object to be compared. o)Implements java. |
| public String | |
| public String | |
| public static KeyValue | |
| public static KeyValue | |
| public static <E> KeyValue | |
| public static <T> KeyValue | |
| public static <T> KeyValue |
| NONE_VALUE | back to summary |
|---|---|
| public static final String NONE_VALUE Use this if you want to indicate that the value is missing. | |
| compareTo | back to summary |
|---|---|
| public default int compareTo(KeyValue o) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that | |
| getKey | back to summary |
|---|---|
| public String getKey() | |
| getValue | back to summary |
|---|---|
| public String getValue() | |
| of | back to summary |
|---|---|
| public static KeyValue of(String key, String value) Creates a | |
| of | back to summary |
|---|---|
| public static KeyValue of(KeyName keyName, String value) | |
| of | back to summary |
|---|---|
| public static <E> KeyValue of(E element, Function<E, String> keyExtractor, Function<E, String> valueExtractor) Creates a | |
| of | back to summary |
|---|---|
| public static <T> KeyValue of(String key, T value, Predicate<? super T> validator) Creates a | |
| of | back to summary |
|---|---|
| public static <T> KeyValue of(KeyName keyName, T value, Predicate<? super T> validator) Creates a | |