com.rogiel.httpchannel.util.Filesizes Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of httpchannel-util Show documentation
Show all versions of httpchannel-util Show documentation
Module providing several utilities to service implementations. Though this module is not required to implement services, it contains several shortcuts that can help implementing services.
The newest version!
/**
*
*/
package com.rogiel.httpchannel.util;
/**
* @author Rogiel
*
*/
public class Filesizes {
public static long kb(long kb) {
return kb * 1024;
}
public static long mb(long mb) {
return kb(mb) * 1024;
}
public static long gb(long gb) {
return mb(gb) * 1024;
}
}