Artifact Content
Not logged in

Artifact fea7ae330229a3e871687b39f7ce083bf08d5397:


package org.interledger.codecs;

import org.interledger.InterledgerPacket;
import org.interledger.codecs.packettypes.InterledgerPacketType;

/**
 * An implementation of {@link Codec} that reads and writes instances of {@link InterledgerPacket}
 * having a discrete {@link InterledgerPacketType} and data payload.
 */
public interface InterledgerPacketCodec<T extends InterledgerPacket> extends Codec<T> {

  /**
   * Accessor for the {@link InterledgerPacketType} of this {@link Codec}.
   *
   * @return The {@link InterledgerPacketType} instance.
   */
  InterledgerPacketType getTypeId();
}