org.eclipse.xtend.middleend.xtend.internal.xtendlib
Class XtendCollectionOperations
java.lang.Object
org.eclipse.xtend.middleend.javaannotations.AbstractExecutionContextAware
org.eclipse.xtend.middleend.xtend.internal.xtendlib.XtendCollectionOperations
- All Implemented Interfaces:
- ExecutionContextAware
public final class XtendCollectionOperations
- extends AbstractExecutionContextAware
- Author:
- Arno Haase (http://www.haase-consulting.com), André Arnold
Method Summary |
java.util.Collection<?> |
flatten(java.util.Collection<?> c)
|
void |
flattenRec(java.util.List<java.lang.Object> result,
java.util.Collection col)
|
java.lang.CharSequence |
XpandForEach(java.util.Collection<?> c,
Function f)
invokes the function for each element of the collection, concatenating the results. |
java.lang.CharSequence |
XpandForEach(java.util.Collection<?> c,
Function f,
java.lang.CharSequence separator)
invokes the function for each element of the collection, concatenating the results and
adding the separator between them. |
java.lang.CharSequence |
XpandForEachWithIterator(java.util.Collection<?> c,
Function f)
invokes the function for each element of the collection, concatenating the results. |
java.lang.CharSequence |
XpandForEachWithIterator(java.util.Collection<?> c,
Function f,
java.lang.CharSequence separator)
invokes the function for each element of the collection, concatenating the results and
adding the separator between them. |
long |
XpandIteratorElements(XtendIterator it)
|
java.util.Collection<?> |
XtendAdd(java.util.Collection c,
java.lang.Object o)
|
java.util.Collection<?> |
XtendAddAll(java.util.Collection c1,
java.util.Collection c2)
|
java.util.Collection<?> |
XtendRemove(java.util.Collection<?> c,
java.lang.Object o)
|
java.util.Collection<?> |
XtendRemoveAll(java.util.Collection<?> c1,
java.util.Collection<?> c2)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XtendCollectionOperations
public XtendCollectionOperations()
XpandForEach
public java.lang.CharSequence XpandForEach(java.util.Collection<?> c,
Function f)
- invokes the function for each element of the collection, concatenating the results.
XpandForEach
public java.lang.CharSequence XpandForEach(java.util.Collection<?> c,
Function f,
java.lang.CharSequence separator)
- invokes the function for each element of the collection, concatenating the results and
adding the separator between them.
XpandForEachWithIterator
public java.lang.CharSequence XpandForEachWithIterator(java.util.Collection<?> c,
Function f)
- invokes the function for each element of the collection, concatenating the results. The function
is passed an "XtendIterator" instance as a second parameter.
XpandForEachWithIterator
public java.lang.CharSequence XpandForEachWithIterator(java.util.Collection<?> c,
Function f,
java.lang.CharSequence separator)
- invokes the function for each element of the collection, concatenating the results and
adding the separator between them. The function is passed an "XtendIterator" instance
as a second parameter.
XpandIteratorElements
public long XpandIteratorElements(XtendIterator it)
flatten
public java.util.Collection<?> flatten(java.util.Collection<?> c)
flattenRec
public void flattenRec(java.util.List<java.lang.Object> result,
java.util.Collection col)
XtendAdd
public java.util.Collection<?> XtendAdd(java.util.Collection c,
java.lang.Object o)
XtendAddAll
public java.util.Collection<?> XtendAddAll(java.util.Collection c1,
java.util.Collection c2)
XtendRemove
public java.util.Collection<?> XtendRemove(java.util.Collection<?> c,
java.lang.Object o)
XtendRemoveAll
public java.util.Collection<?> XtendRemoveAll(java.util.Collection<?> c1,
java.util.Collection<?> c2)