ma.glasnost.orika.metadata
Class ScoringClassMapBuilder.FieldMatchScore
java.lang.Object
ma.glasnost.orika.metadata.ScoringClassMapBuilder.FieldMatchScore
- All Implemented Interfaces:
- Comparable<ScoringClassMapBuilder.FieldMatchScore>
- Enclosing class:
- ScoringClassMapBuilder<A,B>
public static class ScoringClassMapBuilder.FieldMatchScore
- extends Object
- implements Comparable<ScoringClassMapBuilder.FieldMatchScore>
FieldMatchScore is used to score the match of a pair of property expressions
- Author:
- matt.deboer@gmail.com
ScoringClassMapBuilder.FieldMatchScore
public ScoringClassMapBuilder.FieldMatchScore(Property propertyA,
Property propertyB,
ScoringClassMapBuilder.PropertyMatchingWeights matchingWeights)
- Constructs a new FieldMatchScore based on the provided pair of properties, with scoring modified by
the provided PropertyMatchingWeights
- Parameters:
propertyA - propertyB - matchingWeights -
toString
public String toString()
- Overrides:
toString in class Object
meetsMinimumScore
public boolean meetsMinimumScore()
- Returns:
- true if this match meets the minimum score (determined by the matching weights)
compareTo
public int compareTo(ScoringClassMapBuilder.FieldMatchScore that)
- Specified by:
compareTo in interface Comparable<ScoringClassMapBuilder.FieldMatchScore>
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
Copyright © 2013 Glasnost. All Rights Reserved.