org.eclipse.hyades.models.hierarchy.util.internal
Class ShortListImpl
java.lang.Object
org.eclipse.hyades.models.hierarchy.util.internal.ShortListImpl
- All Implemented Interfaces:
- org.eclipse.hyades.models.hierarchy.util.ShortList
- public class ShortListImpl
- extends java.lang.Object
- implements org.eclipse.hyades.models.hierarchy.util.ShortList
|
Method Summary |
org.eclipse.hyades.models.hierarchy.util.ShortList |
add(short value)
|
org.eclipse.hyades.models.hierarchy.util.ShortList |
add(short value,
int index)
|
org.eclipse.hyades.models.hierarchy.util.ShortList |
clear()
|
org.eclipse.hyades.models.hierarchy.util.ShortList |
compact()
|
protected void |
ensureCapacity(int index)
|
short |
get(int index)
|
short[] |
getValues()
|
int |
indexOf(short value,
int startIndex)
|
int |
lastIndexOf(short value,
int endIndex)
|
short |
set(short value,
int index)
|
int |
size()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MISSING_VALUE
public static final short MISSING_VALUE
- See Also:
- Constant Field Values
data
protected short[] data
size
protected int size
ShortListImpl
public ShortListImpl()
ShortListImpl
public ShortListImpl(int initialCapacity)
compact
public org.eclipse.hyades.models.hierarchy.util.ShortList compact()
- Specified by:
compact in interface org.eclipse.hyades.models.hierarchy.util.ShortList
set
public short set(short value,
int index)
- Specified by:
set in interface org.eclipse.hyades.models.hierarchy.util.ShortList
size
public int size()
- Specified by:
size in interface org.eclipse.hyades.models.hierarchy.util.ShortList
add
public org.eclipse.hyades.models.hierarchy.util.ShortList add(short value)
- Specified by:
add in interface org.eclipse.hyades.models.hierarchy.util.ShortList
add
public org.eclipse.hyades.models.hierarchy.util.ShortList add(short value,
int index)
- Specified by:
add in interface org.eclipse.hyades.models.hierarchy.util.ShortList
ensureCapacity
protected void ensureCapacity(int index)
get
public short get(int index)
- Specified by:
get in interface org.eclipse.hyades.models.hierarchy.util.ShortList
indexOf
public int indexOf(short value,
int startIndex)
- Specified by:
indexOf in interface org.eclipse.hyades.models.hierarchy.util.ShortList
lastIndexOf
public int lastIndexOf(short value,
int endIndex)
- Specified by:
lastIndexOf in interface org.eclipse.hyades.models.hierarchy.util.ShortList
getValues
public short[] getValues()
- Specified by:
getValues in interface org.eclipse.hyades.models.hierarchy.util.ShortList
clear
public org.eclipse.hyades.models.hierarchy.util.ShortList clear()
- Specified by:
clear in interface org.eclipse.hyades.models.hierarchy.util.ShortList
toString
public java.lang.String toString()
- Specified by:
toString in interface org.eclipse.hyades.models.hierarchy.util.ShortList