-
Notifications
You must be signed in to change notification settings - Fork 0
/
FirstOrderApplicator.java
35 lines (32 loc) · 1.01 KB
/
FirstOrderApplicator.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/**
* @author jakemingolla
* @since 1.0
*
* Abstract class to extend the Applicator generalizable class to handle
* Applicators of exactly one argument.
*/
public abstract class FirstOrderApplicator extends Applicator {
/**
* @author jakemingolla
*
* Creates an instance of the First Order Applicator
* for the given class list.
*
* Note that even though it supports variable arguments to pass
* in the class list, only 1 class is allowed since this is a
* First Order Applicator
*/
FirstOrderApplicator(Class... classes) {
super(1, classes);
}
/**
* @author jakemingolla
*
* Wrapper for the apply function, passes chain of command up
* to the generalizable Applicator superclass since no more
* processing is needed for a First Order Applicator.
*/
public void apply(Object... args) {
super.apply(args);
}
}