How to name a Class for container of resulted items of a clicked item?
I have an item X that when clicked will be splitted into 1 or more items.
So I have an ArrayList that will be returning the items but I am not sure of how to name the class of that ArrayList.
the class will hold itemName and Count.
public class WhatNameShouldItBe
{
public int itemId ...;
public int itemCount ...;
}
ArrayList<WhatNameShouldItBe> resultItems;
PS: Sorry about the question title ... if you need more information let me know was not sure if anything else was needed to such a question.
Some names I was thinking about:
ExtractedItems but since it is not extracted yet doesnt sound right to me... ResultedItems or ResultItems ClickableItemsResult
It is a list of items that can be given to the user when they use a clickabl开发者_如何学运维e item
English isn't my native language, but I'll give it a shot anyway : SpawnedItem
?
You have a class describing something that has properties. Say it's a Widget. Each widget has an ID and a Count.
You then want a list of these Widgets. No problem, you make an ArrayList and name it something appropriate to what purpose the list serves:
public class Widget
{
public int itemId ...;
public int itemCount ...;
}
ArrayList<Widget> ClickedWidgets;
If the main purpose of the list is to differentiate those Widgets that were clicked on, then call it ClickedWidgets
or something similar.
Remember, the most important thing about naming variables in programming is that it makes sense to you. (It also helps if others can figure it out later!)
A little bit vague on the question, but perhaps "Fragments" would work.
精彩评论