ma.glasnost.orika.metadata
Class ScoringClassMapBuilder.FieldMatchScore

java.lang.Object
  extended by 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

Constructor Summary
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
 
Method Summary
 int compareTo(ScoringClassMapBuilder.FieldMatchScore that)
           
 boolean equals(Object obj)
           
 int hashCode()
           
 boolean meetsMinimumScore()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 -
Method Detail

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.