public class XcoreCollectionLiterals
extends java.lang.Object
collections.| Constructor and Description |
|---|
XcoreCollectionLiterals() |
| Modifier and Type | Method and Description |
|---|---|
static <T> EList<T> |
emptyEList()
Returns an empty unmodifiable list.
|
static <K,V> EMap<K,V> |
emptyEMap()
Returns an empty unmodifiable map.
|
static <T> BasicEList<T> |
newBasicEList(T... elements)
Creates a mutable
BasicEList containing the given elements. |
static <T> EList<T> |
newImmutableEList(T... elements)
Returns an immutable list containing the given elements.
|
public static <T> EList<T> emptyEList()
public static <K,V> EMap<K,V> emptyEMap()
public static <T> EList<T> newImmutableEList(T... elements)
elements - the elements that should be contained in the list. May not be null.public static <T> BasicEList<T> newBasicEList(T... elements)
BasicEList containing the given elements.initial - the initial elements that the list should contain, in order. May not be null.Basic containing the given elements