This commit is contained in:
Michele Artini 2021-02-03 16:07:49 +01:00
parent d942d0c77d
commit c286d28ad2
4 changed files with 34 additions and 11 deletions

View File

@ -157,7 +157,9 @@ public class MDStore implements Serializable {
@Override @Override
public String toString() { public String toString() {
return String return String
.format("MDStore [id=%s, format=%s, layout=%s, interpretation=%s, datasourceName=%s, datasourceId=%s, apiId=%s, hdfsPath=%s, creationDate=%s]", id, format, layout, interpretation, datasourceName, datasourceId, apiId, hdfsPath, creationDate); .format(
"MDStore [id=%s, format=%s, layout=%s, interpretation=%s, datasourceName=%s, datasourceId=%s, apiId=%s, hdfsPath=%s, creationDate=%s]",
id, format, layout, interpretation, datasourceName, datasourceId, apiId, hdfsPath, creationDate);
} }
@Override @Override
@ -167,8 +169,12 @@ public class MDStore implements Serializable {
@Override @Override
public boolean equals(final Object obj) { public boolean equals(final Object obj) {
if (this == obj) { return true; } if (this == obj) {
if (!(obj instanceof MDStore)) { return false; } return true;
}
if (!(obj instanceof MDStore)) {
return false;
}
final MDStore other = (MDStore) obj; final MDStore other = (MDStore) obj;
return Objects.equals(id, other.id); return Objects.equals(id, other.id);
} }

View File

@ -62,8 +62,12 @@ public class MDStoreCurrentVersion implements Serializable {
@Override @Override
public boolean equals(final Object obj) { public boolean equals(final Object obj) {
if (this == obj) { return true; } if (this == obj) {
if (!(obj instanceof MDStoreCurrentVersion)) { return false; } return true;
}
if (!(obj instanceof MDStoreCurrentVersion)) {
return false;
}
final MDStoreCurrentVersion other = (MDStoreCurrentVersion) obj; final MDStoreCurrentVersion other = (MDStoreCurrentVersion) obj;
return Objects.equals(currentVersion, other.currentVersion) && Objects.equals(mdstore, other.mdstore); return Objects.equals(currentVersion, other.currentVersion) && Objects.equals(mdstore, other.mdstore);
} }

View File

@ -116,7 +116,9 @@ public class MDStoreVersion implements Serializable {
@Override @Override
public String toString() { public String toString() {
return String return String
.format("MDStoreVersion [id=%s, mdstore=%s, writing=%s, readCount=%s, lastUpdate=%s, size=%s, hdfsPath=%s]", id, mdstore, writing, readCount, lastUpdate, size, hdfsPath); .format(
"MDStoreVersion [id=%s, mdstore=%s, writing=%s, readCount=%s, lastUpdate=%s, size=%s, hdfsPath=%s]", id,
mdstore, writing, readCount, lastUpdate, size, hdfsPath);
} }
@Override @Override
@ -126,8 +128,12 @@ public class MDStoreVersion implements Serializable {
@Override @Override
public boolean equals(final Object obj) { public boolean equals(final Object obj) {
if (this == obj) { return true; } if (this == obj) {
if (!(obj instanceof MDStoreVersion)) { return false; } return true;
}
if (!(obj instanceof MDStoreVersion)) {
return false;
}
final MDStoreVersion other = (MDStoreVersion) obj; final MDStoreVersion other = (MDStoreVersion) obj;
return Objects.equals(id, other.id); return Objects.equals(id, other.id);
} }

View File

@ -168,7 +168,10 @@ public class MDStoreWithInfo implements Serializable {
@Override @Override
public String toString() { public String toString() {
return String return String
.format("MDStoreWithInfo [id=%s, format=%s, layout=%s, interpretation=%s, datasourceName=%s, datasourceId=%s, apiId=%s, currentVersion=%s, creationDate=%s, lastUpdate=%s, size=%s, numberOfVersions=%s, hdfsPath=%s]", id, format, layout, interpretation, datasourceName, datasourceId, apiId, currentVersion, creationDate, lastUpdate, size, numberOfVersions, hdfsPath); .format(
"MDStoreWithInfo [id=%s, format=%s, layout=%s, interpretation=%s, datasourceName=%s, datasourceId=%s, apiId=%s, currentVersion=%s, creationDate=%s, lastUpdate=%s, size=%s, numberOfVersions=%s, hdfsPath=%s]",
id, format, layout, interpretation, datasourceName, datasourceId, apiId, currentVersion, creationDate,
lastUpdate, size, numberOfVersions, hdfsPath);
} }
@Override @Override
@ -178,8 +181,12 @@ public class MDStoreWithInfo implements Serializable {
@Override @Override
public boolean equals(final Object obj) { public boolean equals(final Object obj) {
if (this == obj) { return true; } if (this == obj) {
if (!(obj instanceof MDStoreWithInfo)) { return false; } return true;
}
if (!(obj instanceof MDStoreWithInfo)) {
return false;
}
final MDStoreWithInfo other = (MDStoreWithInfo) obj; final MDStoreWithInfo other = (MDStoreWithInfo) obj;
return Objects.equals(id, other.id); return Objects.equals(id, other.id);
} }