Class YLongList
- java.lang.Object
-
- de.hybris.platform.util.collections.fast.YLongList
-
public class YLongList extends java.lang.ObjectList that can hold long primitives.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(long value)Add element to the list.longget(int offset)Get element at given offset.intsize()Returns number of elements in the list.
-
-
-
Method Detail
-
size
public int size()
Returns number of elements in the list.- Returns:
- number of elements in the list
-
get
public long get(int offset)
Get element at given offset.- Parameters:
offset- given offset- Returns:
- element at given offset
- Throws:
java.lang.IndexOutOfBoundsException- when offset is out of bound
-
add
public void add(long value)
Add element to the list.- Parameters:
value- value to be add at the end of the list
-
-