What does the dot at the end of the association mean?

I canceled some Java code to get the uml class diagram using Visual Paradigm. The diagram shows some associations with small black circles at one end that I have never seen before.

Picture

This is definitely not a composition, not a deterrence! Can someone explain to me what this association is?

Here is the related code:

public class DataAdapter extends RecyclerView.Adapter<DataAdapter.ViewHolder> {
    public static final String TAG = DataAdapter.class.getSimpleName();

    private static Context mContext;
    private ArrayList<DataClass> mData;
    private static OnItemClickListener<DataClass> mListener;

    public static class ViewHolder extends RecyclerView.ViewHolder {}

    public DataAdapter(Context context, ArrayList<DataClass> data) {}

    public void setOnClickListener(OnItemClickListener listener) {}

    @Override
    public int getItemCount() {}

    @Override
    public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {}

    @Override
    public void onBindViewHolder(ViewHolder holder, int position) {}
}

public interface OnItemClickListener<T> {
    public void onItemClick(T item);
}
+4
source share
2 answers

What you see is a property indicator, usually called a dot. In this case, it indicates that the property on the right side of the association belongs to the class on the left.

From the UML v2.5 specifications:

, , . , , , node, . . , . , , . . .

+7

: UML ( ) () . , , , , ( , ). - . . ( -) .

+3

Source: https://habr.com/ru/post/1690610/


All Articles