We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb35d5d commit c59eaf9Copy full SHA for c59eaf9
src/main/java/pl/koder95/interpreter/basic/Aggregator.java
@@ -0,0 +1,17 @@
1
+package pl.koder95.interpreter.basic;
2
+
3
+/**
4
+ * Interfejs definiujący operację agregacji dwóch obiektów {@link Expression} w jeden obiekt {@link Expression}.
5
+ */
6
+public interface Aggregator {
7
8
+ /**
9
+ * Agreguje dwa obiekty {@link Expression} w jeden obiekt {@link Expression}.
10
+ *
11
+ * @param expr1 pierwszy obiekt {@link Expression} do agregacji.
12
+ * @param expr2 drugi obiekt {@link Expression} do agregacji.
13
+ * @return wynik agregacji jako obiekt {@link Expression}.
14
+ * @throws IllegalArgumentException jeśli którykolwiek z argumentów nie jest obsługiwanym typem.
15
16
+ Expression aggregate(Expression expr1, Expression expr2);
17
+}
0 commit comments