public interface ImmutableIntBag<E>
Modifier and Type | Method and Description |
---|---|
boolean |
contains(int id)
Check if bag contains this element.
|
int |
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.
|
int get(int index)
index
- index of the element to returnint size()
boolean isEmpty()
boolean contains(int id)
id
- Copyright © 2019. All rights reserved.