Module org.junit.platform.engine
Package org.junit.platform.engine
Class DiscoverySelectorIdentifier
java.lang.Object
org.junit.platform.engine.DiscoverySelectorIdentifier
@API(status=MAINTAINED,
     since="1.13.3")
public final class DiscoverySelectorIdentifier
extends Object
Identifier for a 
DiscoverySelector with a specific prefix.
 The string representation of an identifier is
 intended to be human-readable and is formatted as prefix:value.
- Since:
 - 1.11
 - See Also:
 
- 
Method Summary
Modifier and TypeMethodDescriptionstatic DiscoverySelectorIdentifierCreate a newDiscoverySelectorIdentifierwith the supplied prefix and value.booleanGet the prefix of this identifier.getValue()Get the value of this identifier.inthashCode()static DiscoverySelectorIdentifierParse the supplied string representation of aDiscoverySelectorIdentifierin the formatprefix:value.toString()Get the string representation of this identifier in the formatprefix:value. 
- 
Method Details
- 
create
Create a newDiscoverySelectorIdentifierwith the supplied prefix and value.- Parameters:
 prefix- the prefix; nevernullor blankvalue- the value; nevernullor blank
 - 
parse
Parse the supplied string representation of aDiscoverySelectorIdentifierin the formatprefix:value.- Parameters:
 string- the string representation of aDiscoverySelectorIdentifier- Returns:
 - the parsed 
DiscoverySelectorIdentifier - Throws:
 PreconditionViolationException- if the supplied string does not conform to the expected format
 - 
getPrefix
Get the prefix of this identifier.- Returns:
 - the prefix; never 
nullor blank 
 - 
getValue
Get the value of this identifier.- Returns:
 - the value; never 
nullor blank 
 - 
equals
 - 
hashCode
public int hashCode() - 
toString
Get the string representation of this identifier in the formatprefix:value. 
 -