
org.postgresql.adba.util.PgCount Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pgadba Show documentation
Show all versions of pgadba Show documentation
ADBA implementation for PostgreSQL
The newest version!
package org.postgresql.adba.util;
import jdk.incubator.sql2.Result;
import java.util.Objects;
public class PgCount implements Result.RowCount {
private long count;
public PgCount(long count) {
this.count = count;
}
@Override
public long getCount() {
return count;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PgCount pgCount = (PgCount) o;
return count == pgCount.count;
}
@Override
public int hashCode() {
return Objects.hash(count);
}
@Override
public String toString() {
return "" + count;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy