The java.awt.Vector.contains method is used to determine whether a specified object is present in the vector or not. It checks if the vector contains the specified element and returns true if it is found, and false otherwise. This method performs a linear search on the vector, comparing each element with the specified object using the equals method. Consequently, it is important to ensure that the objects stored in the vector override the equals method appropriately for accurate results.
Java Vector.contains - 20 examples found. These are the top rated real world Java examples of java.awt.Vector.contains extracted from open source projects. You can rate examples to help us improve the quality of examples.