Java Array Value Any anyInstance(Throwable t, Class[] types)

Here you can find the source of anyInstance(Throwable t, Class[] types)

Description

any Instance

License

Apache License

Declaration

private static boolean anyInstance(Throwable t, Class<? extends Throwable>[] types) 

Method Source Code

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

public class Main {
    private static boolean anyInstance(Throwable t, Class<? extends Throwable>[] types) {
        for (Class<? extends Throwable> type : types) {
            if (type.isInstance(t))
                return true;
        }/* w w  w  . j a v a  2  s.co  m*/
        return false;
    }
}

Related

  1. anyEmpty(final String head, final String... tail)
  2. anyEmpty(String[] array)
  3. anyEmptyField(String[] items)
  4. anyEqual(int item, int... expected)
  5. anyInherit(Class cl, Class[] otherClasses)
  6. anyIsTrue(Boolean... conditions)
  7. anyMore(int[] target, int[] test)
  8. anyNoneNull(String... arrays)
  9. anyNotNull(final Object... values)