jfun.util
Interface Sizeable

All Known Subinterfaces:
Dict
All Known Implementing Classes:
List, Tuple

public interface Sizeable

Represents anything with a size.

Author:
Ben Yu Jan 12, 2005

Method Summary
 boolean isEmpty()
          Tests whether it is empty.
 int size()
          Get the size.
 

Method Detail

size

public int size()
Get the size.

Returns:
the size.

isEmpty

public boolean isEmpty()
Tests whether it is empty. Some class may provide a more efficient implementation than size().

Returns:
true if empty.