Package com.google.gerrit.entities
Class ChangeSizeBucket
java.lang.Object
com.google.gerrit.entities.ChangeSizeBucket
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getChangeSizeBucket
(long delta) Gets the correlative size bucket for the given change delta.
-
Constructor Details
-
ChangeSizeBucket
public ChangeSizeBucket()
-
-
Method Details
-
getChangeSizeBucket
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.
-