public interface CollectionController extends Serializable
| Modifier and Type | Method and Description |
|---|---|
default void |
add()
Adds a new component at the end of current list.
|
void |
add(int atIndex)
Adds a new component at a specified position, moving subsequent elements by one.
|
default boolean |
isEmpty()
Checks if the collection is empty.
|
default void |
remove()
Removes the last component.
|
void |
remove(int atIndex)
Removes a component at given index.
|
void |
removeAll()
Clears the collection and removes all elements from it.
|
int |
size()
Returns the current size of the collection.
|
int size()
default boolean isEmpty()
true if size() returns 0, false otherwise.void removeAll()
void add(int atIndex)
atIndex - Index to add at.default void add()
void remove(int atIndex)
atIndex - Index to remove component at.default void remove()
remove(int) with size()- 1 as parameter.Copyright © 2024 Miki. All rights reserved.