Package com.wavefront.data
Class AnnotationUtils
- java.lang.Object
-
- com.wavefront.data.AnnotationUtils
-
public abstract class AnnotationUtils extends Object
Utility methods for working withList<Annotation>.- Author:
- vasily@wavefront.com
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetValue(List<Annotation> annotations, String key)static List<Annotation>toAnnotationList(com.google.common.collect.Multimap<String,String> tags)static List<Annotation>toAnnotationList(Map<String,String> tags)static com.google.common.collect.SetMultimap<String,String>toMultimap(Collection<Annotation> annotations)
-
-
-
Method Detail
-
toMultimap
public static com.google.common.collect.SetMultimap<String,String> toMultimap(@Nullable Collection<Annotation> annotations)
-
toAnnotationList
public static List<Annotation> toAnnotationList(@Nullable com.google.common.collect.Multimap<String,String> tags)
-
toAnnotationList
public static List<Annotation> toAnnotationList(@Nullable Map<String,String> tags)
-
getValue
@Nullable public static String getValue(List<Annotation> annotations, String key)
-
-