/*
 * Copyright (C) 2014  Ohm Data
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU Affero General Public License as
 *  published by the Free Software Foundation, either version 3 of the
 *  License, or (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Affero General Public License for more details.
 *
 *  You should have received a copy of the GNU Affero General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package c5db.interfaces.replication;

import c5db.interfaces.log.SequentialEntry;

import java.nio.ByteBuffer;
import java.util.List;

public class ReplicatorEntry extends SequentialEntry {
  protected final List<ByteBuffer> data;

  public ReplicatorEntry(long seqNum, List<ByteBuffer> data) {
    super(seqNum);
    this.data = data;
  }

  public List<ByteBuffer> getData() {
    return data;
  }
}

@@ -1112,11 +1112,527 @@
 ata;%0A  %7D
+%0A%0A  @Override%0A  public String toString() %7B%0A    return %22ReplicatorEntry%7B%22 +%0A        %22seqNum=%22 + seqNum +%0A        %22, data=%22 + data +%0A        '%7D';%0A  %7D%0A%0A  @Override%0A  public boolean equals(Object o) %7B%0A    if (o == null %7C%7C (o.getClass() != this.getClass())) %7B%0A      return false;%0A    %7D%0A    ReplicatorEntry that = (ReplicatorEntry) o;%0A    return this.seqNum == that.getSeqNum()%0A        && this.data.equals(that.data);%0A  %7D%0A%0A  @Override%0A  public int hashCode() %7B%0A    return ((int) seqNum) * 31 +%0A        data.hashCode();%0A  %7D
 %0A%7D%0A

Add toString, equals, and hashCode to ReplicatorEntry