This repository has been archived on 2022-02-11. You can view files and clone it, but cannot push or open issues or pull requests.
kske d484839c8b
All checks were successful
zdm/undo-redo/pipeline/head This commit looks good
Fix divergent changes removal, improve unit test
2021-12-23 09:42:33 +02:00

33 lines
504 B
Java

package dev.kske.undoredo.core;
import java.util.Objects;
/**
* @author Kai S. K. Engelbart
* @since 0.0.1
*/
class IntWrapper {
int value;
@Override
public String toString() {
return String.valueOf(value);
}
@Override
public int hashCode() {
return Objects.hash(value);
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (!(obj instanceof IntWrapper))
return false;
IntWrapper other = (IntWrapper) obj;
return value == other.value;
}
}