Class DiscoverySelectorIdentifier

    • Method Detail

      • create

        public static DiscoverySelectorIdentifier create​(java.lang.String prefix,
                                                         java.lang.String value)
        Create a new DiscoverySelectorIdentifier with the supplied prefix and value.
        Parameters:
        prefix - the prefix; never null or blank
        value - the value; never null or blank
      • parse

        public static DiscoverySelectorIdentifier parse​(java.lang.String string)
        Parse the supplied string representation of a DiscoverySelectorIdentifier in the format prefix:value.
        Parameters:
        string - the string representation of a DiscoverySelectorIdentifier
        Returns:
        the parsed DiscoverySelectorIdentifier
        Throws:
        org.junit.platform.commons.PreconditionViolationException - if the supplied string does not conform to the expected format
      • getPrefix

        public java.lang.String getPrefix()
        Get the prefix of this identifier.
        Returns:
        the prefix; never null or blank
      • getValue

        public java.lang.String getValue()
        Get the value of this identifier.
        Returns:
        the value; never null or blank
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Get the string representation of this identifier in the format prefix:value.
        Overrides:
        toString in class java.lang.Object