# Class: com.pnfsoftware.jeb.core.units.code.MethodMatch

A method match, that can be attached to a [ICodeMethod](ICodeMethod) object, usually via its manager. 

 Example: for dex unit, use `IDexUnit.setMethodMatch()`.

## Constructor: MethodMatch
- parameter: `address`, type: `java.lang.String`
- parameter: `score`, type: `float`
- parameter: `collId`, type: `int`
- parameter: `filetag`, type: `java.lang.String`
- parameter: `creationtime`, type: `long`

Description: Create a method match.
parameter: address: method or routine address
parameter: score: similarity score
parameter: collId: collection id
parameter: filetag: optional source tag
parameter: creationtime: creation time in milliseconds since the unix epoch

## Method: getAddress
- return type: `java.lang.String`

Description: Get the method or routine address.
return: the method or routine address

## Method: getCollectionId
- return type: `int`

Description: Get the collection id.
return: collection id \(reserved ids: 0=anonymous collection/no collection; 1=user collection\)

## Method: getCreationTime
- return type: `long`

Description: Get the creation time.
return: the unix timestamp \(in ms\) specifying the creation time of the signature

## Method: getData
- parameter: `key`, type: `java.lang.String`
- return type: `java.lang.Object`

Description: Retrieve a piece of data manually attached to this match object via [#putData(String, Object)](#putData(String, Object)).
parameter: key: non\-null key
return: value or null

## Method: getFileTag
- return type: `java.lang.String`

Description: Get the optional source tag.
return: optional tag indicating where the signature comes from \(usually a file name\); may be         null

## Method: getScore
- return type: `double`

Description: Get the similarity score.
return: similarity score from 0.0 \(worst\) to 1.0 \(best\) between this signature and the target         method it is applied to

## Method: putData
- parameter: `key`, type: `java.lang.String`
- parameter: `value`, type: `java.lang.Object`
- return type: `java.lang.Object`

Description: Attach a non\-null piece of transient data to this match object.
parameter: key: non\-null key
parameter: value: value to be attached, null to remove the entry
return: previous value or null if none existed

## Method: toString
- return type: `java.lang.String`


