ArrayList implements
the List Interface.
If you look at the Javadoc for List
at the contains
method you will see that it uses the equals()
method to evaluate if two objects are the same.
More Related Contents:
- edit object/arrayList in java again and again [closed]
- make arrayList.toArray() return more specific types
- Creating an Arraylist of Objects
- Finding out if a list of Objects contains something with a specified field value?
- Does rest supports arraylist of objects?
- Remove object from ArrayList with some Object property
- get specific data filed from returned object in java
- ArrayList with 2 dimensions [closed]
- Can we instantiate an abstract class?
- Populating a ListView using an ArrayList?
- What is the difference between “Class.forName()” and “Class.forName().newInstance()”?
- Array of JSON Object to Java POJO
- How to use an arraylist as a prepared statement parameter [duplicate]
- Java ArrayList – how can I tell if two lists are equal, order not mattering?
- list.clear() vs list = new ArrayList(); [duplicate]
- List versus ArrayList as reference type?
- Distinction between the capacity of an array list and the size of an array
- How to create an 2D ArrayList in java? [duplicate]
- In Java 8, why is the default capacity of ArrayList now zero?
- Java rules for casting
- What is a List vs. an ArrayList? [duplicate]
- Remove objects from an ArrayList based on a given criteria
- Most efficient way to see if an ArrayList contains an object in Java
- Load arrayList data into JTable
- Using contains on an ArrayList with integer arrays
- Create an ArrayList with multiple object types?
- Java ArrayList Contain always return false although it contain the same value
- Steps in the memory allocation process for Java objects
- Converting an ArrayList into a 2D Array
- In Java, can you modify a List while iterating through it?