java.lang.Object
com.atlassian.crowd.directory.ldap.diff.MapDiff

public class MapDiff extends Object
Calculates different entries for two Map<String, Object>.
  • Method Details

    • diff

      public static org.apache.commons.lang3.builder.DiffResult<Map<String,@Nullable Object>> diff(@Nonnull Map<String,@Nullable Object> left, @Nonnull Map<String,@Nullable Object> right)
      Calculates different entries for two Map<String, Object>. If an entry is present in one map and absent from the other, the diff for that entry will contain null for the missing entry. Uses custom to string conversion - MapDiff.CustomToStringStyle.STYLE
      Parameters:
      left - left map
      right - right map
      Returns:
      diff result