blob: fb2dc6497ecf15771cc4c62c26703fbd076e53f8 (
plain)
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
36
37
38
39
40
41
42
43
44
|
package org.zwobble.couscous.ast;
import java.util.List;
import java.util.Objects;
public class MethodSignature {
private String name;
private List<TypeName> arguments;
public MethodSignature(String name, List<TypeName> arguments) {
this.name = name;
this.arguments = arguments;
}
public String getName() {
return name;
}
public List<TypeName> getArguments() {
return arguments;
}
@Override
public String toString() {
return "MethodSignature(" +
"name='" + name + '\'' +
", arguments=" + arguments +
')';
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
MethodSignature that = (MethodSignature) o;
return Objects.equals(name, that.name) &&
Objects.equals(arguments, that.arguments);
}
@Override
public int hashCode() {
return Objects.hash(name, arguments);
}
}
|