@Override
	public boolean equals(Object obj) {
		if (!this.getClass().equals(obj.getClass())) {
			return false;
		}
		UnaryExpression that = (UnaryExpression) obj;
		if (!this.unary.equals(that.unary)) {
			return false;
		}
		return true;
	}
Base class for unary operators on PatternExpressions
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/plugin/processors/sleigh/expression/UnaryExpression.java