org.gridkit.jvmtool.event
Class SimpleTagCollection

java.lang.Object
  extended by org.gridkit.jvmtool.event.SimpleTagCollection
All Implemented Interfaces:
Iterable<String>, TagCollection

public class SimpleTagCollection
extends Object
implements TagCollection


Field Summary
 
Fields inherited from interface org.gridkit.jvmtool.event.TagCollection
EMPTY
 
Constructor Summary
  SimpleTagCollection()
           
protected SimpleTagCollection(Iterable<org.gridkit.jvmtool.event.SimpleTagCollection.Tag> tags)
           
  SimpleTagCollection(TagCollection that)
           
 
Method Summary
 void clear()
           
 SimpleTagCollection clone()
           
 boolean contains(String key, String tag)
           
 String firstTagFor(String key)
           
 Iterator<String> iterator()
           
 void put(String key, String tag)
           
 void putAll(TagCollection that)
           
 void remove(String key)
           
 void remove(String key, String tag)
           
 Iterable<String> tagsFor(String key)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleTagCollection

public SimpleTagCollection()

SimpleTagCollection

public SimpleTagCollection(TagCollection that)

SimpleTagCollection

protected SimpleTagCollection(Iterable<org.gridkit.jvmtool.event.SimpleTagCollection.Tag> tags)
Method Detail

iterator

public Iterator<String> iterator()
Specified by:
iterator in interface Iterable<String>

tagsFor

public Iterable<String> tagsFor(String key)
Specified by:
tagsFor in interface TagCollection

firstTagFor

public String firstTagFor(String key)
Specified by:
firstTagFor in interface TagCollection

contains

public boolean contains(String key,
                        String tag)
Specified by:
contains in interface TagCollection

clone

public SimpleTagCollection clone()
Specified by:
clone in interface TagCollection
Overrides:
clone in class Object

put

public void put(String key,
                String tag)

putAll

public void putAll(TagCollection that)

remove

public void remove(String key)

remove

public void remove(String key,
                   String tag)

clear

public void clear()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2019. All Rights Reserved.