KeyValues that are guaranteed to be sorted
and deduplicated by key.
| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private static final KeyValues | |
| private final KeyValue[] | |
| private int |
| Modifier and Type | Method and Description |
|---|---|
| public KeyValues | |
| public KeyValues | |
| public KeyValues | |
| public <E> KeyValues | Returns: a newKeyValues instancethe source elements elements, Function<E, String> function to extract the key from the element keyExtractor, Function<E, String> function to extract the value from the element valueExtractor)Return a new |
| public KeyValues | |
| private static boolean | |
| public static KeyValues | Returns: the merged key valuesthe first set of key values, elements mustn't be null keyValues, Iterable<? extends KeyValue> the second set of key values, elements mustn't be null otherKeyValues)Return a new |
| public static KeyValues | Returns: the merged key valuesthe first set of key values, elements mustn't be null keyValues, String... the additional key/value pairs to add, elements mustn't be
null otherKeyValues)Return a new |
| private void | |
| public static KeyValues | |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| public int | |
| public Iterator | |
| private boolean | |
| public static <E> KeyValues | Returns: a newKeyValues instancethe source elements elements, Function<E, String> function to extract the key from the element keyExtractor, Function<E, String> function to extract the value from the element valueExtractor)Return a new |
| public static KeyValues | |
| public static KeyValues | |
| public static KeyValues | |
| public static KeyValues | |
| public Spliterator | spliterator()
Overrides default java. Spliterator over the elements described by this
Iterable.
|
| public Stream | |
| public String |
| EMPTY | back to summary |
|---|---|
| private static final KeyValues EMPTY | |
| keyValues | back to summary |
|---|---|
| private final KeyValue[] keyValues | |
| last | back to summary |
|---|---|
| private int last | |
| KeyValues | back to summary |
|---|---|
| private KeyValues(KeyValue[] keyValues) | |
| and | back to summary |
|---|---|
| public KeyValues and(String key, String value) Return a new | |
| and | back to summary |
|---|---|
| public KeyValues and(String... keyValues) Return a new | |
| and | back to summary |
|---|---|
| public KeyValues and(KeyValue... keyValues) Return a new | |
| and | back to summary |
|---|---|
| public <E> KeyValues and(Iterable<E> elements, Function<E, String> keyExtractor, Function<E, String> valueExtractor) Return a new | |
| and | back to summary |
|---|---|
| public KeyValues and(Iterable<? extends KeyValue> keyValues) Return a new | |
| blankVarargs | back to summary |
|---|---|
| private static boolean blankVarargs(Object[] args) | |
| concat | back to summary |
|---|---|
| public static KeyValues concat(Iterable<? extends KeyValue> keyValues, Iterable<? extends KeyValue> otherKeyValues) Return a new | |
| concat | back to summary |
|---|---|
| public static KeyValues concat(Iterable<? extends KeyValue> keyValues, String... otherKeyValues) Return a new | |
| dedup | back to summary |
|---|---|
| private void dedup() | |
| empty | back to summary |
|---|---|
| public static KeyValues empty() Return a
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Doc from java. Returns an iterator over elements of type | |
| keyValuesEqual | back to summary |
|---|---|
| private boolean keyValuesEqual(KeyValues obj) | |
| of | back to summary |
|---|---|
| public static <E> KeyValues of(Iterable<E> elements, Function<E, String> keyExtractor, Function<E, String> valueExtractor) Return a new | |
| of | back to summary |
|---|---|
| public static KeyValues of(Iterable<? extends KeyValue> keyValues) Return a new | |
| of | back to summary |
|---|---|
| public static KeyValues of(String key, String value) Return a new | |
| of | back to summary |
|---|---|
| public static KeyValues of(String... keyValues) Return a new | |
| of | back to summary |
|---|---|
| public static KeyValues of(KeyValue... keyValues) Return a new | |
| spliterator | back to summary |
|---|---|
| public Spliterator Overrides default java. Doc from java. Creates a
| |
| stream | back to summary |
|---|---|
| public Stream Return a stream of the contained key values. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Modifier and Type | Field and Description |
|---|---|
| private int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public KeyValue | |
| public void | remove()
Overrides default java. |
| currentIndex | back to summary |
|---|---|
| private int currentIndex | |
| ArrayIterator | back to summary |
|---|---|
| private ArrayIterator() | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public KeyValue next() Implements java. Doc from java. Returns the next element in the iteration. | |
| remove | back to summary |
|---|---|
| public void remove() Overrides default java. Doc from java. Removes from the underlying collection the last element returned
by this iterator (optional operation). This method can be called
only once per call to The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method, unless an overriding class has specified a concurrent modification policy.
The behavior of an iterator is unspecified if this method is called
after a call to the
| |