org.fisco.bcos.sdk.v3.model.MerkleProofUnit Maven / Gradle / Ivy
The newest version!
/*
* Copyright 2014-2020 [fisco-dev]
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*
*/
package org.fisco.bcos.sdk.v3.model;
import java.util.List;
import java.util.Objects;
public class MerkleProofUnit {
private List left;
private List right;
public List getLeft() {
return left;
}
public void setLeft(List left) {
this.left = left;
}
public List getRight() {
return right;
}
public void setRight(List right) {
this.right = right;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
MerkleProofUnit that = (MerkleProofUnit) o;
return Objects.equals(left, that.left) && Objects.equals(right, that.right);
}
@Override
public int hashCode() {
return Objects.hash(left, right);
}
@Override
public String toString() {
return "MerkleProofUnit{" + "left=" + left + ", right=" + right + '}';
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy