Interface ShapeComparator<T extends ShapeDescriptor>
- All Superinterfaces:
DescriptorComparator<T>
,Guarded
,Serializable
- All Known Implementing Classes:
AbstractShapeComparator
@PublicApi
public interface ShapeComparator<T extends ShapeDescriptor>
extends DescriptorComparator<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.chemaxon.descriptors.common.Guarded
Guarded.EnsureThat, Guarded.New
-
Method Summary
Modifier and TypeMethodDescriptioncompare
(byte[] target, byte[] query) Compare two descriptors in serialized form.Compare two descriptors.Methods inherited from interface com.chemaxon.descriptors.common.DescriptorComparator
calculateDissimilarity, calculateDissimilarity, calculateSimilarity, calculateSimilarity, getLowerBound, getMetricMetadata, getUpperBound, unguardedContext
Methods inherited from interface com.chemaxon.descriptors.common.Guarded
getGuardObject
-
Method Details
-
compare
Description copied from interface:DescriptorComparator
Compare two descriptors.Please note that some implementation might return a result object containing additional data related to the compariosn results.
- Specified by:
compare
in interfaceDescriptorComparator<T extends ShapeDescriptor>
- Parameters:
target
- Target descriptorquery
- Query descriptor- Returns:
- Comparison result wrapper
-
compare
Description copied from interface:DescriptorComparator
Compare two descriptors in serialized form.Please note that some implementation might return a result object containing additional data related to the compariosn results. This method's functionality is equivalent to comparing (with
DescriptorComparator.compare(com.chemaxon.descriptors.common.Descriptor, com.chemaxon.descriptors.common.Descriptor)
) deserialized (byDescriptorSerializer.fromByteArray(byte[])
) descriptors.- Specified by:
compare
in interfaceDescriptorComparator<T extends ShapeDescriptor>
- Parameters:
target
- Target descriptor in its serialized formquery
- Query descriptor in its serialized form- Returns:
- Comparison result wrapper
-