All Downloads are FREE. Search and download functionalities are using the official Maven repository.

no.ssb.sagalog.memory.MemorySagaLogEntryId Maven / Gradle / Ivy

There is a newer version: 0.5
Show newest version
package no.ssb.sagalog.memory;

import no.ssb.sagalog.SagaLogEntryId;

import java.util.Objects;

class MemorySagaLogEntryId implements SagaLogEntryId {
    final long id;

    MemorySagaLogEntryId(long id) {
        this.id = id;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        MemorySagaLogEntryId that = (MemorySagaLogEntryId) o;
        return id == that.id;
    }

    @Override
    public int hashCode() {
        return Objects.hash(id);
    }

    @Override
    public String toString() {
        return "MemorySagaLogEntryId{" +
                "id=" + id +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy