org.nnsoft.sameas4j
Class EquivalenceList

java.lang.Object
  extended by org.nnsoft.sameas4j.EquivalenceList
All Implemented Interfaces:
Iterable<Equivalence>

public final class EquivalenceList
extends Object
implements Iterable<Equivalence>

Represents an Equivalence list.


Constructor Summary
EquivalenceList()
           
 
Method Summary
protected  void addEquivalence(Equivalence equivalence)
          Add a new Equivalence into the list.
 Iterator<Equivalence> iterator()
          
 int size()
          Return the number of Equivalence found.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EquivalenceList

public EquivalenceList()
Method Detail

addEquivalence

protected void addEquivalence(Equivalence equivalence)
Add a new Equivalence into the list.

Parameters:
equivalence - the Equivalence has to be added into the list.

iterator

public Iterator<Equivalence> iterator()

Specified by:
iterator in interface Iterable<Equivalence>

size

public int size()
Return the number of Equivalence found.

Returns:
the number of Equivalence found.

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2009-2012 99 Software Foundation. All Rights Reserved.