@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Literal literal = (Literal) o;

        if (id != literal.id) return false;
        if (!Arrays.equals(entries, literal.entries)) return false;

        return true;
    }