is Collection Class - Android java.util

Android examples for java.util:Collection

Description

is Collection Class

Demo Code


//package com.java2s;

import java.util.Collection;

public class Main {
    public static boolean isCollection(Class claxx) {
        return Collection.class.isAssignableFrom(claxx);
    }//from   ww w .ja va 2  s.  c  o m
}

Related Tutorials