All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.digitolio.jdbi.strategy.DefaultTranslatingStrategy Maven / Gradle / Ivy

There is a newer version: 0.6.8.2
Show newest version
package com.digitolio.jdbi.strategy;

public class DefaultTranslatingStrategy implements TranslatingStrategyAware {

    @Override
    public TranslatingStrategy getPropertyTranslatingStrategy() {
        return TranslatingStrategy.UPPER;
    }

    @Override
    public int hashCode() {
        return getPropertyTranslatingStrategy().hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        if (obj != null && obj instanceof TranslatingStrategyAware) {
            TranslatingStrategyAware translater = (TranslatingStrategyAware) obj;
            return getPropertyTranslatingStrategy().equals(translater.getPropertyTranslatingStrategy());
        }
        return false;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy