Class DiffConfig.Builder

  • Enclosing class:
    DiffConfig

    public static class DiffConfig.Builder
    extends java.lang.Object
    Builder for DiffConfig.
    • Constructor Summary

      Constructors 
      Constructor Description
      Builder()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      DiffConfig build()
      Builds the configuration.
      DiffConfig.Builder matchBy​(java.lang.String elementName, java.lang.String... keyAttributes)
      Configures match keys for an element name.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • matchBy

        public DiffConfig.Builder matchBy​(java.lang.String elementName,
                                          java.lang.String... keyAttributes)
        Configures match keys for an element name. Use "*" as the element name for a wildcard that applies to all elements without specific keys.

        Keys can refer to child element names (e.g., "groupId" for Maven dependencies) or attribute names (e.g., "id").

        Parameters:
        elementName - the element name, or "*" for wildcard
        keyAttributes - the attribute or child element names that form the identity
        Returns:
        this builder
      • build

        public DiffConfig build()
        Builds the configuration.
        Returns:
        the built configuration