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 booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)longgetHeight()Block heightinthashCode()voidsetHeight(long height)Block heightjava.lang.StringtoString()
-
-
-
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:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-