Java Collection Contain contains(Object o, Collection c)

Here you can find the source of contains(Object o, Collection c)

Description

contains

License

Apache License

Declaration

public static boolean contains(Object o, Collection<?> c) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.Collection;

public class Main {
    public static boolean contains(Object o, Collection<?> c) {
        if (c == null) {
            return false;
        }/*from   www. j a  v  a  2  s .c o m*/

        return c.contains(o);
    }
}

Related

  1. contains(Collection mainCollection, String str)
  2. contains(Collection c1, Collection c2)
  3. contains(Collection collection, T item)
  4. contains(final Collection mimeTypes, final MimeType mimeType)
  5. contains(final Collection c, final T o)
  6. containsAll(Collection c, Iterable subset)
  7. containsAll(Collection coll, Collection other)
  8. containsAll(Collection collectionToCheck, Collection items)
  9. containsAll(final Collection c, final Object... array)