D - Bare form of suitable descriptor representationT - Unguarded form base typepublic final class UnguardedContextImpl<D extends Descriptor,T extends Serializable> extends Object implements UnguardedContext<D,T>
UnguardedContext.Guarded.EnsureThat, Guarded.New| Constructor and Description |
|---|
UnguardedContextImpl(UnguardedExtractor<D,T> extractor,
UnguardedDissimilarityCalculator<T> comparator)
Construct.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getGuardObject()
Gets the guard object associated to the generated descriptors/utilities.
|
String |
toString() |
UnguardedDissimilarityCalculator<T> |
unguardedComparator()
Comparator to compare the unguarded extracted form.
|
UnguardedExtractor<D,T> |
unguardedExtractor()
Extractor to retrieve unguarded form.
|
public UnguardedContextImpl(UnguardedExtractor<D,T> extractor, UnguardedDissimilarityCalculator<T> comparator)
extractor - Extractorcomparator - Comparatorpublic UnguardedExtractor<D,T> unguardedExtractor()
UnguardedContextunguardedExtractor in interface UnguardedContext<D extends Descriptor,T extends Serializable>public UnguardedDissimilarityCalculator<T> unguardedComparator()
UnguardedContextComparisonContext.descriptorComparator() and the associated
DescriptorComparator.unguardedComparator in interface UnguardedContext<D extends Descriptor,T extends Serializable>public Object getGuardObject()
GuardedThis method is intended to use only for ensuring the compatibility of manipulated objects.
Implementations might use the associated DescriptorGenerator or DescriptorParameters reference as
the guard object, however it is a non recommended practice to use this method to access the associated generator
to perform further operations on it.
getGuardObject in interface Guardednull.