Java Collection Equal getContainedEquals(Collection a, T b)

Here you can find the source of getContainedEquals(Collection a, T b)

Description

get Contained Equals

License

Open Source License

Declaration

public static <T> T getContainedEquals(Collection<T> a, T b) 

Method Source Code


//package com.java2s;
import java.util.Collection;

public class Main {
    public static <T> T getContainedEquals(Collection<T> a, T b) {
        for (T t : a) {
            if (b.equals(t))
                return t;
        }// w  w w .  j  ava2  s .co  m
        return null;
    }
}

Related

  1. equalsSet(Collection c1, Collection c2)
  2. equalsUnordered(Collection collection1, Collection collection2)
  3. equalsUnordered(Collection collection1, Collection collection2)
  4. equalsUnorderedCollections(Collection a, Collection b)
  5. equalTestData(Collection receivedDataSet)
  6. indexOfEquals(Collection collection, T element)
  7. isCollectionEqual(Collection c1, Collection c2)
  8. isCollectionsEqual(Collection f1, Collection f2)
  9. isContentEqual(final Collection collectionA, final Collection collectionB)