Top "Contains" questions

The "contains" operator/method is used to determine if an entity collection contains an element with a particular property.

.Contains() method not calling Overridden equals method

I am having an issue where I make an ArrayList of Foo objects, I override the equals method, and I …

java equals contains
Conditional If Statement: If value in row contains string ... set another column equal to string

EDIT MADE: I have the 'Activity' column filled with strings and I want to derive the values in the 'Activity_2…

python string if-statement conditional contains
Finding out if a list of Objects contains something with a specified field value?

I have a list of DTO received from a DB, and they have an ID. I want to ensure that …

java list object arraylist contains
jQuery :contains selector to search for multiple strings

Assuming i have: <li id="1">Mary</li> <li id="2">John, Mary, Dave</li&…

jquery jquery-selectors css-selectors contains
jquery val() contains()

I want to know if the textarea value contains a certain word. This is not working for me. var value = $(…

jquery contains
How do I make jQuery Contains case insensitive, including jQuery 1.8+?

I'm trying to use "contains" case insensitively. I tried using the solution at the following stackoverflow question, but it didn't …

jquery contains case-sensitive case-insensitive
LINQ: Entity string field contains any of an array of strings

I want to get a collection of Product entities where the product.Description property contains any of the words in …

linq arrays string contains
How to use Linq to check if a list of strings contains any string in a list

I'm constructing a linq query that will check is a string in the DB contains any of the strings in …

c# linq list contains
What does Collection.Contains() use to check for existing objects?

I have a strongly typed list of custom objects, MyObject, which has a property Id, along with some other properties. …

c# collections contains
String contains any items in an array (case insensitive)

How can i check if a $string contains any of the items expressed in an array? $string = 'My nAmE is …

php string arrays contains