public interface ITrimmable
| Modifier and Type | Method and Description |
|---|---|
default void |
clearAndTrim()
Trims the collection down to the original size and clears all present elements with it.
|
void |
clearAndTrim(int size)
Trims the collection down to the requested size and clears all elements while doing so
|
default boolean |
trim()
Trims the original collection down to the size of the current elements
|
boolean |
trim(int size)
Trims the original collection down to the size of the current elements or the requested size depending which is bigger
|
default boolean trim()
boolean trim(int size)
size - the requested trim size.default void clearAndTrim()
void clearAndTrim(int size)
size - the amount of elements that should be allowed