Commit 06a5f863 authored by Falko Schumann's avatar Falko Schumann

Ausdruck ist Functional Interface

parent aad03838
......@@ -34,6 +34,7 @@ import java.util.*;
* @param <T> das Ergebnis des Ausdrucks.
* @author BitCtrl Systems GmbH, Falko Schumann
*/
@FunctionalInterface
public interface Ausdruck<T> {
T interpretiere(Map<String, ?> kontext);
......
......@@ -105,7 +105,7 @@ public final class Regelbasis implements Ausdruck<Collection<FuzzyVariable>> {
aktualisiereTerme(terme, term);
}
private List<Term> aktualisiereTerme(List<Term> terme, Term term) {
private void aktualisiereTerme(List<Term> terme, Term term) {
int index = -1;
for (int i = 0; i < terme.size(); i++) {
if (terme.get(i).getName().equals(term.getName())) {
......@@ -123,7 +123,6 @@ public final class Regelbasis implements Ausdruck<Collection<FuzzyVariable>> {
term = new Term(term.getName(), z);
terme.set(index, term);
}
return terme;
}
@Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment