package com.google.research.bleth.simulator;

import java.util.Objects;

/** An advertisement of a beacon. */
public class Transmission {
    final int advertisement;

    /**
     * @param eid the ephemeral ID of the beacon.
     */
    Transmission(int eid) {
        advertisement = eid;
    }

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

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

@@ -50,25 +50,39 @@
 ort 
-java.util.Objects
+com.google.auto.value.AutoValue
 ;%0A%0A/
@@ -121,574 +121,204 @@
  */%0A
-public class Transmission %7B%0A    final int advertisement;%0A%0A    /**%0A     * @param eid the ephemeral ID of the beacon.%0A     */%0A    Transmission(int eid) %7B%0A        advertisement = eid;%0A    %7D%0A%0A    @Override%0A    public boolean equals(Object o) %7B%0A        if (this == o) %7B%0A            return true;%0A        %7D%0A        if (o == null %7C%7C getClass() != o.getClass()) %7B%0A            return false;%0A        %7D%0A        Transmission that = (Transmission) o;%0A        return advertisement == that.advertisement;%0A    %7D%0A%0A    @Override%0A    public int hashCode() %7B%0A        return Objects.hash(
+@AutoValue%0Apublic abstract class Transmission %7B%0A    public static Transmission create(int advertisement) %7B%0A        return new AutoValue_Transmission(advertisement);%0A    %7D%0A%0A    public abstract int 
 adve
@@ -330,15 +330,9 @@
 ment
+(
 );%0A
-    %7D%0A%7D%0A
+%7D

Change Transmission to an autoValue class.