net.sf.staccatocommons.defs.partial
Interface SizeAware

All Superinterfaces:
EmptyAware

public interface SizeAware
extends EmptyAware

Interface for objects that understand size() message. It extends the EmptyAware interface.

Author:
flbulgarelli

Method Summary
 boolean isEmpty()
          Answers if this SizeAware is empty.
 int size()
          Answers the size of this size aware.
 

Method Detail

size

int size()
Answers the size of this size aware. It should be a non negative int.

Returns:
the size

isEmpty

boolean isEmpty()
Answers if this SizeAware is empty. It should be true that aSizeAware.isEmpty() == (aSizeAware.size() == 0)

Specified by:
isEmpty in interface EmptyAware
Returns:
if the object is empty.


Get Staccatocommons at SourceForge.net. Fast, secure and Free Open Source software downloads