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

org.sfm.map.impl.TargetColumnsMapperKey Maven / Gradle / Ivy

Go to download

Java library to map flat record - ResultSet, csv - to java object with minimum configuration and low footprint.

There is a newer version: 1.10.3
Show newest version
package org.sfm.map.impl;

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);
    }

	public String[] getColumns() {
		return columns;
	}

	public Class getTarget() {
		return target;
	}
	
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy