@Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        } else if (!(o instanceof LiteralExpression)) {
            return false;
        } else {
            LiteralExpression other = (LiteralExpression) o;
            // Compare all numbers as doubles to remove conflicts between integers, floats, and doubles.
            if (value instanceof Number && other.getValue() instanceof Number) {
                return ((Number) value).doubleValue() == ((Number) other.getValue()).doubleValue();
            } else {
                return Objects.equals(value, ((LiteralExpression) o).value);
            }
        }
    }
Gets the nullable value contained in the literal value.

@return Returns the contained value.
smithy-jmespath/src/main/java/software/amazon/smithy/jmespath/ast/LiteralExpression.java