![JAR search and dependency download from the Maven repository](/logo.png)
br.com.objectos.way.sql.PrimaryKeyInfoPojo Maven / Gradle / Ivy
package br.com.objectos.way.sql;
import br.com.objectos.way.core.testing.Testables;
import com.google.common.base.Optional;
import java.util.List;
@javax.annotation.Generated("br.com.objectos.way.auto.pojo.AutoPojoProcessor")
final class PrimaryKeyInfoPojo extends PrimaryKeyInfo {
private final Optional name;
private final List indexColumnInfoList;
public PrimaryKeyInfoPojo(PrimaryKeyInfoBuilderPojo builder) {
super();
name = builder.name();
indexColumnInfoList = builder.indexColumnInfoList();
}
@Override
public boolean isEqual(KeyInfo o) {
if (!PrimaryKeyInfoPojo.class.isInstance(o)) {
return false;
}
PrimaryKeyInfoPojo that = PrimaryKeyInfoPojo.class.cast(o);
return Testables.isEqualHelper()
.equal(this.name, that.name)
.equal(this.indexColumnInfoList, that.indexColumnInfoList)
.result();
}
@Override
Optional name() {
return name;
}
@Override
List indexColumnInfoList() {
return indexColumnInfoList;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy