I've got an custom List and want to check if it contains a special Item. TheList is populated with Rowlayout
objects.
public RowLayout(String content, int number) {
this.content = content;
this.number = number;
}
Now i wanna check if my List<Roalayout>
contains a special item at the content
- position. How do I do that?
It doesn't work with just asking .contains'
.
What i wanna check:
if (!List<RowLayout>.contains("insert here"){
//Do something
}