I'm trying to do a written report on some code and I found one on youtube. However I don't understand what is going on exactly. I understand that it get's the ID of a certain object which then opens in a new Java class but if someone could breakdown what is happening it would be greatly appreciated.

```
private void setUpOnclickListener() 
    {
            listView.setOnItemClickListener(new AdapterView.OnItemClickListener(){

                @Override
                public void onItemClick(AdapterView<?> adapterView, View view, int position, long l)
                {
                    Supplier selectSupplier = (Supplier) (listView.getItemAtPosition(position));
                    Intent showDetail = new Intent(getApplicationContext(), DetailActivity.class);
                    showDetail.putExtra("id",selectSupplier.getId());
                    startActivity(showDetail);
                }
            });
    }

```