public class MachineTagUtils extends Object
Modifier and Type | Method and Description |
---|---|
static <T extends MachineTaggable> |
filter(List<T> source,
String namespace,
String name,
String value)
Returns a copy of the original list of machine taggable entities, that have the machine tag.
|
static MachineTag |
firstTag(MachineTaggable taggable,
String namespace,
String tagName) |
static <T> T |
firstTag(MachineTaggable taggable,
String namespace,
String tagName,
Function<MachineTag,T> function) |
static MachineTag |
firstTag(MachineTaggable taggable,
TagName tagName) |
static <T> T |
firstTag(MachineTaggable taggable,
TagName tagName,
Function<MachineTag,T> function) |
static List<MachineTag> |
list(MachineTaggable taggable,
String namespace,
String tagName) |
static List<MachineTag> |
list(MachineTaggable taggable,
TagName tagName) |
static List<MachineTag> |
list(MachineTaggable taggable,
TagNamespace tagNamespace) |
static List<MachineTag> |
listByPrefix(MachineTaggable taggable,
String namespace,
String prefix) |
static Double |
tagValueAsDouble(MachineTag tag) |
static Integer |
tagValueAsInteger(MachineTag tag) |
public static <T extends MachineTaggable> List<T> filter(List<T> source, @Nullable String namespace, @Nullable String name, @Nullable String value)
public static Integer tagValueAsInteger(MachineTag tag)
public static Double tagValueAsDouble(MachineTag tag)
public static MachineTag firstTag(MachineTaggable taggable, TagName tagName)
public static MachineTag firstTag(MachineTaggable taggable, String namespace, String tagName)
public static <T> T firstTag(MachineTaggable taggable, TagName tagName, Function<MachineTag,T> function)
public static <T> T firstTag(MachineTaggable taggable, String namespace, String tagName, Function<MachineTag,T> function)
public static List<MachineTag> list(MachineTaggable taggable, TagNamespace tagNamespace)
public static List<MachineTag> list(MachineTaggable taggable, TagName tagName)
public static List<MachineTag> list(MachineTaggable taggable, String namespace, String tagName)
public static List<MachineTag> listByPrefix(MachineTaggable taggable, String namespace, String prefix)
Copyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.