Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.x] Add helper functions for ByteSizeValues of a given unit (#63679) #63707

Merged
merged 1 commit into from
Oct 14, 2020

Commits on Oct 14, 2020

  1. Add helper functions for ByteSizeValues of a given unit (elastic#63679)

    As a developer that periodically worries about absolute sizes of bytes, I love our good ByteSizeValue abstractions + and the unit sizes.
    
    But, I find the pattern `new ByteSizeValue(<some long>, <some unit>).getBytes()` frustrating. 
    
    This commit adds some simple convenience methods for each byte unit and constructing a ByteSizeValue of the given size for that unit.
    benwtrent committed Oct 14, 2020
    Configuration menu
    Copy the full SHA
    27aca56 View commit details
    Browse the repository at this point in the history