Package app.babylon.table.column
Class CategoryCodeList.BuilderInt
java.lang.Object
app.babylon.table.column.CategoryCodeList.BuilderInt
- All Implemented Interfaces:
CategoryCodeList.Builder
- Enclosing interface:
CategoryCodeList
public static final class CategoryCodeList.BuilderInt
extends Object
implements CategoryCodeList.Builder
Builder implementation that stores incoming codes as ints before compacting
to the smallest suitable representation.
-
Method Summary
-
Method Details
-
add
Description copied from interface:CategoryCodeList.BuilderAppends one category code.- Specified by:
addin interfaceCategoryCodeList.Builder- Parameters:
x- category code to append- Returns:
- this builder
-
addAll
Description copied from interface:CategoryCodeList.BuilderAppends all supplied category codes.- Specified by:
addAllin interfaceCategoryCodeList.Builder- Parameters:
x- category codes to append- Returns:
- this builder
-
size
public int size()Description copied from interface:CategoryCodeList.BuilderReturns the number of appended codes.- Specified by:
sizein interfaceCategoryCodeList.Builder- Returns:
- builder size
-
get
public int get(int i) Description copied from interface:CategoryCodeList.BuilderReturns the appended code at the supplied index.- Specified by:
getin interfaceCategoryCodeList.Builder- Parameters:
i- zero-based index- Returns:
- category code
-
build
Description copied from interface:CategoryCodeList.BuilderBuilds the immutable category code list.- Specified by:
buildin interfaceCategoryCodeList.Builder- Returns:
- immutable category code list
-