com.jparams.store.comparison.ComparisonPolicy Maven / Gradle / Ivy
package com.jparams.store.comparison;
/**
* Transforms a given key into a comparable key.
*
* @param type
*/
public interface ComparisonPolicy
{
/**
* Returns true if comparison is supported for this class type
*
* @param clazz class to check for support
* @return true if supported
*/
boolean supports(Class> clazz);
/**
* Transform the given item into the comparable type
*
* @param item item
* @return comparable
*/
Object createComparable(T item);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy