is Collection size Larger Than - Android java.util

Android examples for java.util:Collection Size

Description

is Collection size Larger Than

Demo Code


//package com.java2s;

import java.util.Collection;

public class Main {
    public final static boolean isLargerThan(Collection c, int mount) {
        return size(c) > mount;
    }//from   w  ww. ja v a2 s .  c o  m

    public final static int size(Collection c) {
        return c == null ? 0 : c.size();
    }
}

Related Tutorials