Class MatchedObject

Object
MatchedObject

public final class MatchedObject extends Object
An object with associated matches.
Author:
Owen Feehan
  • Constructor Details

    • MatchedObject

      public MatchedObject(ObjectMask source, ObjectCollection matches)
      Creates a new MatchedObject instance.
      Parameters:
      source - The source object (which is matched against others)
      matches - The matches associated with the source-object
  • Method Details

    • numberMatches

      public int numberMatches()
      The number of objects in matches.
      Returns:
      the number of objects.
    • getSource

      public ObjectMask getSource()
      The source object (which is matched against others)
    • getMatches

      public ObjectCollection getMatches()
      The matches associated with the source-object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object