Class HeightBlockIdentifier
- java.lang.Object
-
- com.syntifi.casper.sdk.identifier.block.HeightBlockIdentifier
-
- All Implemented Interfaces:
BlockIdentifier
public class HeightBlockIdentifier extends java.lang.Object implements BlockIdentifier
Identifier class passed to serviceCasperService.getBlock(BlockIdentifier)
to identify and retrieve the block given its height.- Since:
- 0.0.1
-
-
Constructor Summary
Constructors Constructor Description HeightBlockIdentifier(long height)
-
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)
long
getHeight()
Block heightint
hashCode()
void
setHeight(long height)
Block heightjava.lang.String
toString()
-
-
-
Method Detail
-
getHeight
public long getHeight()
Block height
-
setHeight
public void setHeight(long height)
Block height
-
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
-
-