Class BeanDiff.Builder<T>

java.lang.Object
org.apache.juneau.utils.BeanDiff.Builder<T>
Type Parameters:
T - The bean type.
Enclosing class:
BeanDiff

public static class BeanDiff.Builder<T> extends Object
Builder class.
  • Constructor Details

  • Method Details

    • first

      public BeanDiff.Builder<T> first(T value)
      Specifies the first bean to compare.
      Parameters:
      value - The first bean to compare.
      Returns:
      This object.
    • second

      public BeanDiff.Builder<T> second(T value)
      Specifies the second bean to compare.
      Parameters:
      value - The first bean to compare.
      Returns:
      This object.
    • beanContext

      Specifies the bean context to use for introspecting beans.

      If not specified, uses BeanContext.DEFAULT.

      Parameters:
      value - The bean context to use for introspecting beans.
      Returns:
      This object.
    • include

      public BeanDiff.Builder<T> include(String... properties)
      Specifies the properties to include in the comparison.

      If not specified, compares all properties.

      Parameters:
      properties - The properties to include in the comparison.
      Returns:
      This object.
    • include

      public BeanDiff.Builder<T> include(Set<String> properties)
      Specifies the properties to include in the comparison.

      If not specified, compares all properties.

      Parameters:
      properties - The properties to include in the comparison.
      Returns:
      This object.
    • exclude

      public BeanDiff.Builder<T> exclude(String... properties)
      Specifies the properties to exclude from the comparison.
      Parameters:
      properties - The properties to exclude from the comparison.
      Returns:
      This object.
    • exclude

      public BeanDiff.Builder<T> exclude(Set<String> properties)
      Specifies the properties to exclude from the comparison.
      Parameters:
      properties - The properties to exclude from the comparison.
      Returns:
      This object.
    • build

      public BeanDiff build()
      Build the differences.
      Returns:
      A new BeanDiff object.