Class HashBlockIdentifier
- java.lang.Object
-
- com.syntifi.casper.sdk.identifier.block.HashBlockIdentifier
-
- All Implemented Interfaces:
BlockIdentifier
public class HashBlockIdentifier extends java.lang.Object implements BlockIdentifier
Identifier class passed to serviceCasperService.getBlock(BlockIdentifier)
to identify and retrieve the block given its hash.- Since:
- 0.0.1
-
-
Constructor Summary
Constructors Constructor Description HashBlockIdentifier(java.lang.String hash)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.lang.String
getHash()
Block hashint
hashCode()
void
setHash(java.lang.String hash)
Block hashjava.lang.String
toString()
-
-
-
Method Detail
-
getHash
public java.lang.String getHash()
Block hash
-
setHash
public void setHash(java.lang.String hash)
Block hash
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-