randoop.util
Interface ISimpleSet<T>

All Known Implementing Classes:
ReversibleSet, SimpleSet

public interface ISimpleSet<T>


Method Summary
Modifier and Type Method and Description
 void add(T elt)
          Adds the given elt to the set.
 boolean contains(T elt)
          Returns true if elt is in this set.
 Set<T> getElements()
          Returns the elements in this set, as a java.util.Set
 void remove(T elt)
          Removes the given elt from the set.
 int size()
          Returns the size of this set.
 String toString()
          Returns a String representation of this set.
 

Method Detail

add

void add(T elt)
Adds the given elt to the set. Precondition: the given elt is not already in the set.

Parameters:
elt - cannot be null.

remove

void remove(T elt)
Removes the given elt from the set. Precondition: the given elt is in the set.

Parameters:
elt - cannot be null.

contains

boolean contains(T elt)
Returns true if elt is in this set.

Parameters:
elt - cannot be null.

getElements

Set<T> getElements()
Returns the elements in this set, as a java.util.Set


size

int size()
Returns the size of this set.


toString

String toString()
Returns a String representation of this set.

Overrides:
toString in class Object