Package science.aist.gtf.graph.impl
Class MetaTagCollectionImpl
- java.lang.Object
-
- science.aist.gtf.graph.impl.MetaTagCollectionImpl
-
- All Implemented Interfaces:
MetaTagCollection
- Direct Known Subclasses:
AbstractEdge,AbstractVertex,GraphImpl
public class MetaTagCollectionImpl extends Object implements MetaTagCollection
Handles MetaTags
- Since:
- 1.0
- Author:
- Andreas Pointner
-
-
Constructor Summary
Constructors Constructor Description MetaTagCollectionImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> booleanaddMetaTag(MetaTag<T> metaTag)Adds a meta tag to the current vertex<T> Collection<MetaTag<T>>getMetaTags()<T> booleanremoveMetaTag(MetaTag<T> metaTag)Removes a meta tag from the current vertex-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface science.aist.gtf.graph.MetaTagCollection
getMetaTagValue, getMetaTagValue, removeMetaTag, tryGetMetaTagValue, tryGetMetaTagValue
-
-
-
-
Method Detail
-
getMetaTags
public <T> Collection<MetaTag<T>> getMetaTags()
- Specified by:
getMetaTagsin interfaceMetaTagCollection- Type Parameters:
T- returns a collection of all the meta tags- Returns:
- the collection of all current meta tags
-
addMetaTag
public <T> boolean addMetaTag(MetaTag<T> metaTag)
Description copied from interface:MetaTagCollectionAdds a meta tag to the current vertex- Specified by:
addMetaTagin interfaceMetaTagCollection- Type Parameters:
T- the type of the meta tag to add- Parameters:
metaTag- the meta tag- Returns:
- a flag which indicates if the element was added
-
removeMetaTag
public <T> boolean removeMetaTag(MetaTag<T> metaTag)
Description copied from interface:MetaTagCollectionRemoves a meta tag from the current vertex- Specified by:
removeMetaTagin interfaceMetaTagCollection- Type Parameters:
T- the type of the meta tag to remove- Parameters:
metaTag- the meta tag- Returns:
- a flag which indicates if the element was removed
-
-