Modifier and Type | Method and Description |
---|---|
default TagList |
filter(BiPredicate<String,String> predicate)
Return a new tag list with only tags that match the predicate.
|
default TagList |
filterByKey(Predicate<String> predicate)
Return a new tag list with only tags with keys that match the predicate.
|
default void |
forEach(BiConsumer<String,String> consumer)
Apply the consumer function for each tag in the list.
|
String |
getKey(int i)
Return the key at the specified index.
|
default Tag |
getTag(int i)
Return the tag at the specified index.
|
String |
getValue(int i)
Return the value at the specified index.
|
default Iterator<Tag> |
iterator() |
int |
size()
Return the number of tags in the list.
|
forEach, spliterator
String getKey(int i)
String getValue(int i)
int size()
default Tag getTag(int i)
default TagList filter(BiPredicate<String,String> predicate)
default TagList filterByKey(Predicate<String> predicate)
default void forEach(BiConsumer<String,String> consumer)