Package org.starcoin.types.event
Class NewBlockEvent
- java.lang.Object
-
- org.starcoin.types.event.NewBlockEvent
-
public final class NewBlockEvent extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNewBlockEvent.Builder
-
Constructor Summary
Constructors Constructor Description NewBlockEvent(Long number, AccountAddress author, Long timestamp, Long uncles)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NewBlockEventbcsDeserialize(byte[] input)byte[]bcsSerialize()static NewBlockEventdeserialize(Deserializer deserializer)booleanequals(Object obj)inthashCode()voidserialize(Serializer serializer)
-
-
-
Field Detail
-
number
public final Long number
-
author
public final AccountAddress author
-
timestamp
public final Long timestamp
-
uncles
public final Long uncles
-
-
Constructor Detail
-
NewBlockEvent
public NewBlockEvent(Long number, AccountAddress author, Long timestamp, Long uncles)
-
-
Method Detail
-
deserialize
public static NewBlockEvent deserialize(Deserializer deserializer) throws DeserializationError
- Throws:
DeserializationError
-
bcsDeserialize
public static NewBlockEvent bcsDeserialize(byte[] input) throws DeserializationError
- Throws:
DeserializationError
-
serialize
public void serialize(Serializer serializer) throws SerializationError
- Throws:
SerializationError
-
bcsSerialize
public byte[] bcsSerialize() throws SerializationError- Throws:
SerializationError
-
-