Buffer b = (Buffer) buf;  if (this.in == b.in && this.out == b.out) return true; return false; }
}
    public boolean equals(Object buf) {        if (!(buf instanceof Buffer))            return false;        Buffer b = (Buffer) buf;        if (this.in == b.in && this.out == b.out)            return true;        return false;    }