org.openstreetmap.josm.plugins.graphview.core.data
Constructor and Description |
---|
MapBasedTagGroup(Iterable<Tag> tags) |
MapBasedTagGroup(Map<String,String> tagMap) |
MapBasedTagGroup(Tag... tags) |
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> keys,
String value)
returns true if this tag group contains one of the keys
with value
|
boolean |
containsAny(Iterable<Tag> tags)
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> values)
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()
returns an Iterator providing access to all Tags.
|
int |
size()
returns the number of tags in this group
|
String |
toString() |
public MapBasedTagGroup(Map<String,String> tagMap)
tagMap
- map from keys to values; != null;
must not be modified after being used as parameterpublic MapBasedTagGroup(Iterable<Tag> tags)
tags
- tags to add to the group; != null, each != nullpublic MapBasedTagGroup(Tag... tags)
tags
- tags to add to the group; each != nullpublic String getValue(String key)
TagGroup
public boolean containsKey(String key)
TagGroup
containsKey
in interface TagGroup
key
- key to check for; != nullpublic boolean containsAnyKey(Iterable<String> keys)
TagGroup
containsAnyKey
in interface TagGroup
keys
- keys to check for; != nullpublic boolean containsValue(String value)
TagGroup
containsValue
in interface TagGroup
value
- value to check for; != nullpublic boolean containsAnyValue(Iterable<String> values)
TagGroup
containsAnyValue
in interface TagGroup
values
- values to check for; != nullpublic boolean contains(Tag tag)
TagGroup
public boolean containsAny(Iterable<Tag> tags)
TagGroup
containsAny
in interface TagGroup
tags
- tags to check for; != nullpublic boolean contains(String key, String value)
TagGroup
public boolean containsAny(Iterable<String> keys, String value)
TagGroup
containsAny
in interface TagGroup
keys
- keys of the tag to check for; != nullvalue
- value 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 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 int size()
TagGroup
public boolean isEmpty()
TagGroup
public Iterator<Tag> iterator()
Iterator.remove()
method.iterator
in interface Iterable<Tag>
public String toString()
toString
in class Object