Modifier and Type | Method and Description |
---|---|
boolean |
contains(E e)
Check if bag contains this element.
|
E |
get(int index)
Returns the element at the specified position in Bag.
|
boolean |
isEmpty()
Returns true if this bag contains no elements.
|
int |
size()
Returns the number of elements in this bag.
|
E get(int index)
index
- index of the element to returnint size()
boolean isEmpty()
boolean contains(E e)
e
- Copyright © 2015. All rights reserved.