Class ChangeSizeBucket

java.lang.Object
com.google.gerrit.entities.ChangeSizeBucket

public class ChangeSizeBucket extends Object
A human-readable change size bucket.

Should be kept in sync with polygerrit-ui/app/elements/change-list/gr-change-list-item/gr-change-list-item.ts

  • Constructor Details

    • ChangeSizeBucket

      public ChangeSizeBucket()
  • Method Details

    • getChangeSizeBucket

      public static String getChangeSizeBucket(long delta)
      Gets the correlative size bucket for the given change delta.

      Same as gr-change-list-item.ts::computeChangeSize().

      Parameters:
      delta - the total number of changed lines (additions+deletions) of the change.
      Returns:
      a short human-readable size bucket.