Class PathMatchType

    • Method Detail

      • exact

        public final String exact()

        An exact match of the path.

        Returns:
        An exact match of the path.
      • prefix

        public final String prefix()

        A prefix match of the path.

        Returns:
        A prefix match of the path.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)
      • fromExact

        public static PathMatchType fromExact​(String exact)
        Create an instance of this class with exact() initialized to the given value.

        An exact match of the path.

        Parameters:
        exact - An exact match of the path.
      • fromPrefix

        public static PathMatchType fromPrefix​(String prefix)
        Create an instance of this class with prefix() initialized to the given value.

        A prefix match of the path.

        Parameters:
        prefix - A prefix match of the path.