1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package dev.aherscu.qa.s3.publisher.maven.plugin.config;
18
19 import java.util.*;
20
21 import edu.umd.cs.findbugs.annotations.*;
22
23 @SuppressFBWarnings(
24 value = "UWF_UNWRITTEN_FIELD",
25 justification = "fields are filled in by the Maven plugin framework")
26 public class Bind {
27
28
29
30
31
32 String pattern;
33
34
35
36
37
38
39
40
41 String metadataId;
42
43 @Override
44 public boolean equals(final Object o) {
45 if (o == this)
46 return true;
47 if (!(o instanceof Bind))
48 return false;
49 final Bind bind = (Bind) o;
50 return Objects.equals(pattern, bind.pattern)
51 && Objects.equals(metadataId, bind.metadataId);
52 }
53
54 public String getMetadataId() {
55 return metadataId;
56 }
57
58 public String getPattern() {
59 return pattern;
60 }
61
62 @Override
63 public int hashCode() {
64 final int prime = 31;
65 int result = 1;
66 result = prime * result + (pattern == null ? 0 : pattern.hashCode());
67 result =
68 prime * result + (metadataId == null ? 0 : metadataId.hashCode());
69 return result;
70 }
71
72 @Override
73 public String toString() {
74 return "bind ["
75 + " pattern=" + pattern
76 + " metadataId=" + metadataId
77 + " ]";
78 }
79 }