Class 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 Detail

      • ChangeSizeBucket

        public ChangeSizeBucket()
    • Method Detail

      • 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.