Class TestRunMetadataImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.stat.TestRunMetadataImpl
-
- All Implemented Interfaces:
TestRunMetadata
public class TestRunMetadataImpl extends Object implements TestRunMetadata
Test metadata is a map from String key to some value, where value could be numeric or string- Since:
- 2018.2
- Author:
- kir
-
-
Field Summary
Fields Modifier and Type Field Description static TestRunMetadataImplEMPTY
-
Constructor Summary
Constructors Constructor Description TestRunMetadataImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TestRunMetadatacopyFrom(TestRunMetadata metadata)booleanequals(Object o)Set<String>getNames()DoublegetNumValue(String name)StringgetType(String name)StringgetValue(String name)inthashCode()
-
-
-
Field Detail
-
EMPTY
public static final TestRunMetadataImpl EMPTY
-
-
Method Detail
-
getNames
@NotNull public Set<String> getNames()
- Specified by:
getNamesin interfaceTestRunMetadata- Returns:
- names of metadata elements
-
getValue
@Nullable public String getValue(@NotNull String name)
- Specified by:
getValuein interfaceTestRunMetadata- Returns:
- reported metadata string value, if not reported or numeric value was provided, returns null
-
getNumValue
@Nullable public Double getNumValue(@NotNull String name)
- Specified by:
getNumValuein interfaceTestRunMetadata- Returns:
- reported metadata numeric value, if not reported or string value was provided, returns null
-
getType
@NotNull public String getType(@NotNull String name)
- Specified by:
getTypein interfaceTestRunMetadata- Returns:
- reported metadata type, which is "text" by default for non-numeric types and "number" for numeric ones
- See Also:
jetbrains.buildServer.messages.TestMetadata.NUMBER_TYPE,jetbrains.buildServer.messages.TestMetadata.TEXT_TYPE
-
copyFrom
public TestRunMetadata copyFrom(TestRunMetadata metadata)
-
-