|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object EmptyTagGroup
public final class EmptyTagGroup
Field Summary | |
---|---|
static EmptyTagGroup |
EMPTY_TAG_GROUP
|
Method Summary | |
---|---|
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 |
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()
|
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final EmptyTagGroup EMPTY_TAG_GROUP
Method Detail |
---|
public boolean contains(Tag tag)
TagGroup
contains
in interface TagGroup
tag
- tag to check for; != nullpublic boolean contains(String key, String value)
TagGroup
contains
in interface TagGroup
key
- key of the tag to check for; != nullvalue
- value of the tag 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 String getValue(String key)
TagGroup
getValue
in interface TagGroup
key
- key whose value will be returned; != nullpublic int size()
TagGroup
size
in interface TagGroup
public boolean isEmpty()
TagGroup
isEmpty
in interface TagGroup
public Iterator<Tag> iterator()
iterator
in interface Iterable<Tag>
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |