Skip to content

Commit c59eaf9

Browse files
authored
Create Aggregator.java
1 parent bb35d5d commit c59eaf9

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)