1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.apache.myfaces.cdi.converter;
21
22 import java.io.Serializable;
23 import java.lang.reflect.Type;
24 import java.util.Objects;
25
26
27
28
29 public class FacesConverterInfo implements Serializable
30 {
31 private Type type;
32
33 private Class forClass;
34
35 private String converterId;
36
37 public FacesConverterInfo(Type type, Class forClass, String converterId)
38 {
39 this.type = type;
40 this.forClass = forClass;
41 this.converterId = converterId;
42 }
43
44
45
46
47 public String getConverterId()
48 {
49 return converterId;
50 }
51
52
53
54
55 public void setConverterId(String converterId)
56 {
57 this.converterId = converterId;
58 }
59
60 public Class getForClass()
61 {
62 return forClass;
63 }
64
65 public void setForClass(Class forClass)
66 {
67 this.forClass = forClass;
68 }
69
70 public Type getType()
71 {
72 return type;
73 }
74
75 public void setType(Type type)
76 {
77 this.type = type;
78 }
79
80 @Override
81 public int hashCode()
82 {
83 int hash = 7;
84 hash = 53 * hash + Objects.hashCode(this.type);
85 hash = 53 * hash + Objects.hashCode(this.forClass);
86 hash = 53 * hash + Objects.hashCode(this.converterId);
87 return hash;
88 }
89
90 @Override
91 public boolean equals(Object obj)
92 {
93 if (obj == null)
94 {
95 return false;
96 }
97 if (getClass() != obj.getClass())
98 {
99 return false;
100 }
101 final FacesConverterInfo other = (FacesConverterInfo) obj;
102 if (!Objects.equals(this.type, other.type))
103 {
104 return false;
105 }
106 if (!Objects.equals(this.forClass, other.forClass))
107 {
108 return false;
109 }
110 if (!Objects.equals(this.converterId, other.converterId))
111 {
112 return false;
113 }
114 return true;
115 }
116
117
118 }