Class ContactMap

All Implemented Interfaces:
Serializable, Cloneable, Iterable<Contact>, Map<Object,Contact>, SequencedMap<Object,Contact>

class ContactMap extends LinkedHashMap<Object,Contact> implements Iterable<Contact>
The ContactMap object is used to keep track of the contacts that have been processed. Keeping track of the contacts that have been processed ensures that no two contacts are used twice. This ensures a consistent XML class schema.
  • Constructor Details

    • ContactMap

      ContactMap()
  • Method Details

    • iterator

      public Iterator<Contact> iterator()
      This is used to iterate over the Contact objects in a for each loop. Iterating over the contacts allows them to be easily added to a list of unique contacts.
      Specified by:
      iterator in interface Iterable<Contact>
      Returns:
      this is used to return the contacts registered