forked from SteamWar/SteamWar
Format code
This commit is contained in:
@@ -27,30 +27,30 @@ import lombok.Getter;
|
||||
@EqualsAndHashCode
|
||||
public class Pair<K, V> {
|
||||
|
||||
private K key;
|
||||
private K key;
|
||||
|
||||
private V value;
|
||||
private V value;
|
||||
|
||||
|
||||
public Pair(final K key, final V value) {
|
||||
this.key = key;
|
||||
this.value = value;
|
||||
}
|
||||
public Pair(final K key, final V value) {
|
||||
this.key = key;
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public K setKey(final K key) {
|
||||
final K currentKey = this.key;
|
||||
this.key = key;
|
||||
return currentKey;
|
||||
}
|
||||
public K setKey(final K key) {
|
||||
final K currentKey = this.key;
|
||||
this.key = key;
|
||||
return currentKey;
|
||||
}
|
||||
|
||||
public V setValue(final V value) {
|
||||
final V currentValue = this.value;
|
||||
this.value = value;
|
||||
return currentValue;
|
||||
}
|
||||
public V setValue(final V value) {
|
||||
final V currentValue = this.value;
|
||||
this.value = value;
|
||||
return currentValue;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return this.key + "=" + this.value;
|
||||
}
|
||||
@Override
|
||||
public String toString() {
|
||||
return this.key + "=" + this.value;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user