BRUtil - Making Java a Kinder, Gentler, Place to be.

brutil
Interface Collection

All Known Subinterfaces:
List, Map, MultiSet, PriorityQueue, Queue, Set, SortedMap, SortedMultiSet, SortedSet, Stack
All Known Implementing Classes:
AbstractListing, Array

public interface Collection

Ron doubts the wisdom or usefulness of having size() implemented by collections. Anything like that should be in State for analysis purposes, and then it should be a Distribution not an int.


Method Summary
 void clear()
          Clears out the contents of the Collection (optional operation)
 boolean isEmpty()
          Returns true if the Collection contains no elements, false otherwise
 int size()
          Returns the size of the given Collection.
 

Method Detail

size

public int size()
Returns the size of the given Collection.

isEmpty

public boolean isEmpty()
Returns true if the Collection contains no elements, false otherwise

clear

public void clear()
Clears out the contents of the Collection (optional operation)


BRUtil - Making Java a Kinder, Gentler, Place to be.