Normal
test liefert einen boolschen Wert zurück, anyMatch will aber ein Predicate und keinen boolean.Versuch mal das hier[code=Java]Stream<Expression> stream = sequenceExpressionList.getElement().stream();boolean sameClass = stream.findFirst().map(exp1 -> stream.allMatch(exp2 -> ts.typeof(exp1, trace) == ts.typeof(exp2, trace))).orElse(true);[/code]
test liefert einen boolschen Wert zurück, anyMatch will aber ein Predicate und keinen boolean.
Versuch mal das hier
[code=Java]
Stream<Expression> stream = sequenceExpressionList.getElement().stream();
boolean sameClass = stream.findFirst().map(exp1 -> stream.allMatch(exp2 ->
ts.typeof(exp1, trace) == ts.typeof(exp2, trace))).orElse(true);
[/code]