java.lang.Object
com.ultikits.ultitools.abstracts.gui.declarative.core.DiffResult

public class DiffResult extends Object
DiffResult represents the difference between two renders.

It holds every change that must be applied to the Inventory:

  • added - newly added RenderNodes
  • removed - deleted RenderNodes
  • updated - RenderNodes whose content changed (same position)
  • moved - RenderNodes whose position changed
Since:
6.2.0
Version:
1.0.0
Author:
UltiTools Team
  • Field Details

  • Constructor Details

  • Method Details

    • empty

      @NotNull public static @NotNull DiffResult empty()
      Creates an empty DiffResult.
      Returns:
      an empty DiffResult
    • builder

      @NotNull public static @NotNull DiffResult.Builder builder()
      Creates a new Builder.
      Returns:
      the Builder
    • getAdded

      @NotNull public @NotNull List<RenderNode> getAdded()
    • getRemoved

      @NotNull public @NotNull List<RenderNode> getRemoved()
    • getUpdated

      @NotNull public @NotNull List<DiffResult.RenderNodeUpdate> getUpdated()
    • getMoved

      @NotNull public @NotNull List<DiffResult.RenderNodeMove> getMoved()
    • isEmpty

      public boolean isEmpty()
      Checks whether there are any changes.
      Returns:
      true if there are no changes
    • getChangeCount

      public int getChangeCount()
      Gets the total number of changes.
      Returns:
      the total change count
    • toString

      public String toString()
      Overrides:
      toString in class Object