public boolean hasSameData(ZFrame other) {
        if (other == null)
            return false;

        if (size() == other.size()) {
            if (hasData() && other.hasData()) {
                for (int i = 0; i < size(); i++) {
                    if (this.data[i] != other.data[i])
                        return false;
                }
                return true;
            }
        }
        return false;
    }