Package com.google.gerrit.entities
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 Summary
Constructors Constructor Description ChangeSizeBucket()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getChangeSizeBucket(long delta)
Gets the correlative size bucket for the given change delta.
-
-
-
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.
-
-