Java List Compare equalsToAny(Object comparable, Object... compareList)

Here you can find the source of equalsToAny(Object comparable, Object... compareList)

Description

equals To Any

License

Open Source License

Declaration

public static boolean equalsToAny(Object comparable, Object... compareList) 

Method Source Code


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

public class Main {
    public static boolean equalsToAny(Object comparable, Object... compareList) {
        return Arrays.asList(compareList).contains(comparable);
    }//from  www.j  av  a 2s .c o m
}

Related

  1. compareSubstring(List pieces, String s)
  2. compareTermList(final List tl0, final List tl1)
  3. compareTo(List list, int i, int j)
  4. compareTwoListOfStrings(List first, List second)
  5. compareVectors(List vectorA, List vectorB)
  6. parseAndCompare(List fileNames, int masterPartitionId)
  7. sortList(List sources, Comparator comparer)