Merge pull request #7431 from amit2103/BAEL-16045-7
[BAEL-16045] - Check Article Code Matches GitHub for https://www.bael…
This commit is contained in:
33
libraries/src/main/java/com/baeldung/pairs/CustomPair.java
Normal file
33
libraries/src/main/java/com/baeldung/pairs/CustomPair.java
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
package com.baeldung.pairs;
|
||||||
|
|
||||||
|
public class CustomPair {
|
||||||
|
|
||||||
|
private String key;
|
||||||
|
private String value;
|
||||||
|
|
||||||
|
public CustomPair(String key, String value) {
|
||||||
|
super();
|
||||||
|
this.key = key;
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getKey() {
|
||||||
|
return key;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setKey(String key) {
|
||||||
|
this.key = key;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getValue() {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setValue(String value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Object[] getPair() {
|
||||||
|
return new Object[] { this.key, this.value};
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user