Skip to content

Commit 1d0eb51

Browse files
committed
added ability to accept Object type as Value in Element class
1 parent 40a17a2 commit 1d0eb51

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/main/java/com/intuit/fuzzymatcher/domain/Element.java

+5
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,11 @@ public Builder setVariance(String variance) {
180180
return this;
181181
}
182182

183+
public Builder setValue(Object value) {
184+
this.value = value;
185+
return this;
186+
}
187+
183188
public Builder setValue(String value) {
184189
this.value = value;
185190
return this;

src/main/java/com/intuit/fuzzymatcher/domain/Match.java

-4
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,6 @@ public T getMatchedWith() {
4646
return matchedWith;
4747
}
4848

49-
public void setMatchedWith(T matchedWith) {
50-
this.matchedWith = matchedWith;
51-
}
52-
5349
public double getResult() {
5450
return this.score.getResult();
5551
}

0 commit comments

Comments
 (0)