Package com.vaadin.flow.component.upload
Class UploadI18N.Units
java.lang.Object
com.vaadin.flow.component.upload.UploadI18N.Units
- All Implemented Interfaces:
Serializable
- Enclosing class:
- UploadI18N
unit translations.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSize()
get units size listGets the units size base.units size list: ["B", "kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"]setSizeBase
(Integer sizeBase) Sets the units size base.
-
Constructor Details
-
Units
public Units()unit translations with default size: size = Arrays.asList("B", "kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"); -
Units
- Parameters:
size
- list of unit translations
-
Units
- Parameters:
size
- list of unit translationssizeBase
- units size base
-
-
Method Details
-
getSize
get units size list- Returns:
-
setSize
units size list: ["B", "kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"]- Parameters:
size
-- Returns:
-
getSizeBase
Gets the units size base.- Returns:
- the units size base
-
setSizeBase
Sets the units size base.- Parameters:
sizeBase
- units size base- Returns:
- units
-