com.ibm.portal
Interface Countable


public interface Countable

Optional interface for collection-like models that want to expose the number of elements stored.

Since:
7.0

Method Summary
 int size()
          Returns the number of elements kept by the model.
 

Method Detail

size

int size()
         throws ModelException
Returns the number of elements kept by the model. If more than Integer.MAX_VALUE elements are held, Integer.MAX_VALUE is returned.

Returns:
Non-negative number of elements.
Throws:
ModelException - In case an exception occurs accessing the elements.