public interface IElementArrayContainer<ITEM>
Modifier and Type | Method and Description |
---|---|
default void |
addItem(ITEM item)
Adds a new item.
|
default void |
addItems(ITEM... items)
Adds a new items.
|
default IElementArrayContainer<ITEM> |
getElementArrayContainer()
Gets the target implementor of the interface.
|
default int |
getItemCount()
Gets the item count.
|
default void |
insertItem(ITEM item,
int index)
Inserts an item at specified index.
|
default void |
removeAllItems()
Removes all items.
|
default ITEM |
removeItem(int index)
Removes an item.
|
default int |
removeItem(ITEM item)
Removes an item.
|
default ITEM |
setItem(ITEM item,
int index)
Sets an item at specified index.
|
default void |
sortItems()
Sorts the list according to the default JVM locale case sensitively.
|
default void |
sortItems(boolean isCaseInsensitive)
Sorts the list according to the default JVM locale.
|
default void |
sortItems(Locale locale)
Sorts the list according to a locale case sensitively.
|
default void |
sortItems(Locale locale,
boolean isCaseInsensitive)
Sorts the list according to a locale.
|
default IElementArrayContainer<ITEM> getElementArrayContainer()
default int getItemCount()
default void sortItems()
IllegalStateException
- If the container is read-only.default void sortItems(boolean isCaseInsensitive)
isCaseInsensitive
- Flag for case insensitive.IllegalStateException
- If the container is read-only.default void sortItems(Locale locale)
locale
- The locale to use for string sorting.IllegalStateException
- If the container is read-only.default void sortItems(Locale locale, boolean isCaseInsensitive)
locale
- The locale to use for string sorting, null for default..isCaseInsensitive
- Flag for case insensitive.IllegalStateException
- If the container is read-only.default void addItem(ITEM item)
item
- The item to add.NullPointerException
- If the item is null.IllegalStateException
- If the container is read-only.default void addItems(ITEM... items)
items
- The items to add.NullPointerException
- If an item is null.IllegalStateException
- If the container is read-only.default void insertItem(ITEM item, int index)
item
- The item to add.index
- The index to insert the item before (-1 for last).NullPointerException
- If the item is null.IndexOutOfBoundsException
- If the index is in error.IllegalStateException
- If the container is read-only.default ITEM setItem(ITEM item, int index)
item
- The item to add.index
- The index to insert the item before (-1 for last).NullPointerException
- If the item is null.IndexOutOfBoundsException
- If the index is in error.IllegalStateException
- If the container is read-only.default ITEM removeItem(int index)
index
- The index of the item to delete.IndexOutOfBoundsException
- If the index is in error.IllegalStateException
- If the container is read-only.default int removeItem(ITEM item)
item
- The item to remove.IndexOutOfBoundsException
- If the index is in error.IllegalStateException
- If the container is read-only.default void removeAllItems()
IllegalStateException
- If the container is read-only.iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.