Class MatchSet

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<Match>, java.util.Collection<Match>, java.util.Set<Match>

    public class MatchSet
    extends java.util.HashSet<Match>
    class that contains a collection of matches.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String otherName  
      java.lang.String thisName  
    • Constructor Summary

      Constructors 
      Constructor Description
      MatchSet​(java.lang.String thisProgramName, java.lang.String otherProgramName)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Match[] getMatches()  
      java.lang.Object[] getResultsArray​(Match m)  
      • Methods inherited from class java.util.HashSet

        add, clear, clone, contains, isEmpty, iterator, remove, size, spliterator
      • Methods inherited from class java.util.AbstractSet

        equals, hashCode, removeAll
      • Methods inherited from class java.util.AbstractCollection

        addAll, containsAll, retainAll, toArray, toArray, toString
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, removeIf, stream, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.Set

        addAll, containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray
    • Field Detail

      • thisName

        public final java.lang.String thisName
      • otherName

        public final java.lang.String otherName
    • Constructor Detail

      • MatchSet

        public MatchSet​(java.lang.String thisProgramName,
                        java.lang.String otherProgramName)
        Parameters:
        thisProgramName - Name of this program (i.e. the program from which the matching was initiated.
        otherProgramName - Name of the program being matched.
    • Method Detail

      • getMatches

        public Match[] getMatches()
        Returns:
        The sorted array of matches.
      • getResultsArray

        public java.lang.Object[] getResultsArray​(Match m)
        Returns:
        The match as an Object array.