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

org.simpleflatmapper.jooq.TargetColumnsMapperKey Maven / Gradle / Ivy

There is a newer version: 9.0.2
Show newest version
package org.simpleflatmapper.jooq;

import java.util.Arrays;

public final class TargetColumnsMapperKey {

	private final String[] columns;
	private final Class target;
	public TargetColumnsMapperKey(final Class target, final String... columns) {
		this.columns = columns;
		this.target = target;
	}

	@Override
	public boolean equals(final Object obj) {
        TargetColumnsMapperKey targetColumnsMapperKey = (TargetColumnsMapperKey) obj;
        return target == targetColumnsMapperKey.target && Arrays.equals(columns, targetColumnsMapperKey.columns);
    }

	@Override
	public int hashCode() {
		int result = Arrays.hashCode(columns);
		result = 31 * result + target.hashCode();
		return result;
	}

	@Override
	public String toString() {
		return "TargetColumnsMapperKey{" +
				"columns=" + Arrays.toString(columns) +
				", target=" + target +
				'}';
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy