Class TrackingId

    • Method Detail

      • of

        public static TrackingId of​(@NotEmpty
                                    @NotEmpty String value)
        Creates an identifier from a string, or generates a random identifier if the string is null, empty or blank.
        Parameters:
        value - the identifier string
        Returns:
        the supplied identifier or a newly generated one
        Since:
        8.6.0
      • random

        public static TrackingId random()
        Creates a random identifier.
        Returns:
        an identifier based on a random UUID
        Since:
        8.6.0
      • getValue

        public String getValue()
        The string representation of this identifier.
        Since:
        8.6.0
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object