public class WGStructEntryList extends java.util.LinkedHashSet<WGStructEntry>
| Modifier and Type | Method and Description |
|---|---|
java.util.List<WGStructEntry> |
asList()
Returns a basic
List containing the struct entries in their order. |
static WGStructEntryList |
create()
Creates an empty struct entry list
|
static WGStructEntryList |
create(java.util.List<WGStructEntry> list)
Create a WGStructEntryList from an ordinary java.util.List filled with WGStructEntry objects
|
WGStructEntry |
getByIndex(int idx)
Retrieve a struct entry by it's index.
|
WGStructEntry |
getByPosition(double pos)
Retrieves a struct entry by it's position number.
|
int |
getIndexOfEntry(WGStructEntry testEntry)
Returns the siblings index of the given entry in the siblings list.
|
add, clear, clone, contains, isEmpty, iterator, remove, sizepublic static WGStructEntryList create(java.util.List<WGStructEntry> list)
list - public static WGStructEntryList create()
public WGStructEntry getByPosition(double pos) throws WGAPIException
pos - WGAPIExceptionpublic WGStructEntry getByIndex(int idx) throws WGAPIException
idx - WGAPIExceptionpublic int getIndexOfEntry(WGStructEntry testEntry) throws WGAPIException
testEntry - WGAPIExceptionpublic java.util.List<WGStructEntry> asList() throws WGAPIException
List containing the struct entries in their order. The list is unmodifiable.WGAPIException