Class IterableOperationContributor
java.lang.Object
org.eclipse.epsilon.eol.execute.operations.contributors.OperationContributor
org.eclipse.epsilon.eol.execute.operations.contributors.IterableOperationContributor
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
Fields inherited from class org.eclipse.epsilon.eol.execute.operations.contributors.OperationContributor
cachedMethodNames -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasBag()asSet()at(int index) Collection<?>clone()concat()booleancontributesTo(Object target) protected <T> voidcopy(Iterable<T> source, Collection<T> target) intbooleanbooleanexcludesAll(Collection<?> col) excludingAll(Collection<?> col) first()first(int number) flatten()TODO : See thisfourth()protected Collection<Object>protected List<?>getList()protected Set<?>getSet()protected Iterable<?>booleanbooleanincludesAll(Collection<?> col) includingAll(Collection<?> col) intinvert()protected booleanbooleanisEmpty()protected booleanisList()protected booleanisSet()last()max()min()booleannotEmpty()Stream<?>powerset()product()random()removeAt(int index) second()selectByKind(EolType type) selectByType(EolType type) intsize()Stream<?>stream()protected Stream<?>stream(boolean parallel) sum()third()Methods inherited from class org.eclipse.epsilon.eol.execute.operations.contributors.OperationContributor
close, findContributedMethodForEvaluatedParameters, findContributedMethodForEvaluatedParameters, findContributedMethodForUnevaluatedParameters, getContext, getReflectionTarget, includeInheritedMethods, setContext, setTarget
-
Constructor Details
-
IterableOperationContributor
public IterableOperationContributor() -
IterableOperationContributor
-
-
Method Details
-
getTarget
- Overrides:
getTargetin classOperationContributor- Returns:
- The
OperationContributor.targetfield.
-
getIterable
-
isCollection
protected boolean isCollection() -
getCollection
-
isList
protected boolean isList() -
getList
-
isSet
protected boolean isSet() -
getSet
-
contributesTo
- Specified by:
contributesToin classOperationContributor
-
random
-
size
public int size() -
at
-
removeAt
-
asConcurrentBag
- Returns:
- Since:
- 2.1
-
asConcurrentSet
- Returns:
- Since:
- 2.1
-
asSequence
-
asSet
-
asBag
-
asOrderedSet
-
sum
-
product
-
isEmpty
public boolean isEmpty() -
notEmpty
public boolean notEmpty() -
copy
-
stream
- Returns:
- Since:
- 2.1
-
parallelStream
- Returns:
- Since:
- 2.1
-
stream
- Parameters:
parallel-- Returns:
- Since:
- 2.1
-
clone
-
includes
-
excludes
-
includesAll
-
excludesAll
-
count
-
selectByKind
- Parameters:
type-- Returns:
- Since:
- 2.1
-
selectByType
- Parameters:
type-- Returns:
- Since:
- 2.1
-
includingAll
-
including
-
flatten
TODO : See this- Returns:
-
excluding
-
excludingAll
-
first
-
first
-
second
-
third
-
fourth
-
last
-
indexOf
-
concat
-
concat
-
max
-
max
-
min
-
min
-
invert
-
createCollection
-
powerset
-