E - The type of the items added into the list.public class SizeLimitedList<E> extends Object
Items are added at the front of the list. That is, the item at index 0 is more recent than that added at index 1. In this regard, this class resembles a stack.
| Constructor and Description |
|---|
SizeLimitedList(int maxSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(E item) |
boolean |
contains(E item) |
E |
get(int index) |
int |
size() |
Copyright © 2025. All rights reserved.