boolean (Object object) { if (object == this) return true; if (object instanceof Vector) { Vector vector = (Vector)object; int size = vector.getSize(); if (size == getSize()) { for (int i = 0; i < size; i++) { if (Double.doubleToLongBits(get(i)) != Double.doubleToLongBits(vector.get(i))) return false; } return true; } } return false; }