E
- The comparable type.public final class SortedList<E extends Comparable<E>> extends Object
Constructor and Description |
---|
SortedList()
Internal constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
add(E element)
Add an element to the list.
|
void |
clear()
Clear all elements.
|
boolean |
contains(E element)
Check if the list contain this element.
|
E |
first()
Get first element.
|
void |
remove(E element)
Remove an element from the list.
|
int |
size()
Get the list size.
|
public E first()
public void clear()
public void add(E element)
element
- The element to add.public void remove(E element)
element
- The element to remove.public int size()
public boolean contains(E element)
element
- The element to check.true
if element is contained, false
else.Copyright © 2016 Byron 3D Games Studio. All rights reserved.