# 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`


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

Description: 
return: the method or routine address

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

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

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

Description: 
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: 
return: optional tag indicating where the signature comes from \(usually a file name\); may be         null

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

Description: 
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`


