Interface IAppendableList<E>
- Type Parameters:
E- the type of the elements of aIAppendableList
- All Known Subinterfaces:
IArrayList<E>, ILinkedList<E>
- All Known Implementing Classes:
ArrayList, LinkedList
public interface IAppendableList<E>
A
IAppendableList is a list that can add elements at its end.- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the given element at the end of the currentIAppendableList.voidAdds the given elements at the end of the currentIAppendableList.<T extends E>
voidaddAtEnd(T... elements) Adds the given elements at the end of the currentIAppendableList.
-
Method Details
-
addAtEnd
Adds the given element at the end of the currentIAppendableList.- Parameters:
element-- Throws:
RuntimeException- if the given elements is null
-
addAtEnd
Adds the given elements at the end of the currentIAppendableList. The elements will be added in the given order.- Parameters:
elements-- Throws:
RuntimeException- if the given elements is nullRuntimeException- if one of the given elements is null
-
addAtEnd
Adds the given elements at the end of the currentIAppendableList. The elements will be added in the given order.- Type Parameters:
T- the type of the given elements- Parameters:
elements-- Throws:
RuntimeException- if the given elements is nullRuntimeException- if one of the given elements is null
-