is Collection size Not Less Than - Android java.util

Android examples for java.util:Collection Size

Description

is Collection size Not Less Than

Demo Code


//package com.java2s;

import java.util.Collection;

public class Main {
    public final static boolean isNotLessThan(Collection c, int mount) {
        return size(c) >= mount;
    }//  w w w .j av  a 2 s  . co  m

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

Related Tutorials