/*
 * Copyright 2016 higherfrequencytrading.com
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package net.openhft.chronicle.queue;

import net.openhft.chronicle.wire.AbstractMarshallable;

public class RollDetails extends AbstractMarshallable {
    final int cycle;
    final long epoch;

    public RollDetails(int cycle, long epoch) {
        this.cycle = cycle;
        this.epoch = epoch;
    }

    public int cycle() {
        return cycle;
    }
}

@@ -961,11 +961,559 @@
 e;%0A    %7D
+%0A%0A    // generated for performance%0A    @Override%0A    public boolean equals(Object o) %7B%0A        if (this == o) return true;%0A        if (o == null %7C%7C getClass() != o.getClass()) return false;%0A        if (!super.equals(o)) return false;%0A%0A        RollDetails that = (RollDetails) o;%0A%0A        if (cycle != that.cycle) return false;%0A        return epoch == that.epoch;%0A    %7D%0A%0A    // generated for performance%0A    @Override%0A    public int hashCode() %7B%0A        int epoch32 = (int) (epoch %5E (epoch %3E%3E%3E 32));%0A        return cycle * 1019 + epoch32 * 37;%0A    %7D
 %0A%7D%0A

Add a custom hashCode and equals for performance.