org.openstreetmap.josm.plugins.graphview.core.data
Modifier and Type | Field and Description |
---|---|
static EmptyTagGroup |
EMPTY_TAG_GROUP |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(String key,
String value)
returns true if this tag group contains the tag
|
boolean |
contains(Tag tag)
returns true if this tag group contains the given tag
|
boolean |
containsAny(Iterable<String> keys,
Iterable<String> values)
returns true if this tag group contains one of the keys
with one of the values
|
boolean |
containsAny(Iterable<String> key,
String value)
returns true if this tag group contains one of the keys
with value
|
boolean |
containsAny(Iterable<Tag> tag)
returns true if this tag group contains one of the given tags
|
boolean |
containsAny(String key,
Iterable<String> values)
returns true if this tag group contains the key with
one of the values
|
boolean |
containsAnyKey(Iterable<String> keys)
returns true if this tag group contains a tag with one of the given keys
|
boolean |
containsAnyValue(Iterable<String> value)
returns true if this tag group contains at least one tag with one of the given values
|
boolean |
containsKey(String key)
returns true if this tag group contains a tag with the given key
|
boolean |
containsValue(String value)
returns true if this tag group contains at least one tag with the given value
|
String |
getValue(String key)
returns the value for the given key or null if no tag in this group uses that key
|
boolean |
isEmpty()
returns true if this group contains any tags
|
Iterator<Tag> |
iterator() |
int |
size()
returns the number of tags in this group
|
String |
toString() |
public static final EmptyTagGroup EMPTY_TAG_GROUP
public boolean contains(Tag tag)
TagGroup
public boolean containsAny(Iterable<Tag> tag)
TagGroup
containsAny
in interface TagGroup
tag
- tags to check for; != nullpublic boolean contains(String key, String value)
TagGroup
public boolean containsAny(Iterable<String> key, String value)
TagGroup
containsAny
in interface TagGroup
key
- keys of the tag to check for; != nullvalue
- value of the tag to check for; != nullpublic boolean containsAny(String key, Iterable<String> values)
TagGroup
containsAny
in interface TagGroup
key
- key of the tag to check for; != nullvalues
- values of the tag to check for; != nullpublic boolean containsAny(Iterable<String> keys, Iterable<String> values)
TagGroup
containsAny
in interface TagGroup
keys
- keys of the tag to check for; != nullvalues
- values of the tag to check for; != nullpublic boolean containsAnyKey(Iterable<String> keys)
TagGroup
containsAnyKey
in interface TagGroup
keys
- keys to check for; != nullpublic boolean containsKey(String key)
TagGroup
containsKey
in interface TagGroup
key
- key to check for; != nullpublic boolean containsValue(String value)
TagGroup
containsValue
in interface TagGroup
value
- value to check for; != nullpublic boolean containsAnyValue(Iterable<String> value)
TagGroup
containsAnyValue
in interface TagGroup
value
- values to check for; != nullpublic String getValue(String key)
TagGroup
public int size()
TagGroup
public boolean isEmpty()
TagGroup
public String toString()
toString
in class Object