com.bloxbean.cardano.client.common.model.SlotConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cardano-client-common Show documentation
Show all versions of cardano-client-common Show documentation
Cardano Client Lib - Common Module
The newest version!
package com.bloxbean.cardano.client.common.model;
import java.util.Objects;
public class SlotConfig {
private int slotLength;
private long zeroSlot;
private long zeroTime;
public SlotConfig(int slotLength, long zeroSlot, long zeroTime) {
this.slotLength = slotLength;
this.zeroSlot = zeroSlot;
this.zeroTime = zeroTime;
}
public int getSlotLength() {
return slotLength;
}
public long getZeroSlot() {
return zeroSlot;
}
public long getZeroTime() {
return zeroTime;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
SlotConfig that = (SlotConfig) o;
return slotLength == that.slotLength && zeroSlot == that.zeroSlot && zeroTime == that.zeroTime;
}
@Override
public int hashCode() {
return Objects.hash(slotLength, zeroSlot, zeroTime);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy