org.sfm.map.impl.TargetColumnsMapperKey Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of simpleFlatMapper Show documentation
Show all versions of simpleFlatMapper Show documentation
Java library to map flat record - ResultSet, csv - to java object with minimum configuration and low footprint.
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;
}
}