package org.msgpack.core;

/**
 * Header of extended type
 */
public class ExtendedTypeHeader {
    private final int type;
    private final int length;
    ExtendedTypeHeader(int type, int length) {
        this.type = type;
        this.length = length;
    }

    public int getType() {
        return type;
    }

    public int getLength() {
        return length;
    }
}

@@ -143,24 +143,25 @@
 int length;%0A
+%0A
     Extended
@@ -370,11 +370,383 @@
 h;%0A    %7D
+%0A%0A    @Override%0A    public int hashCode() %7B%0A        return (type + 31) * 31 + length;%0A    %7D%0A%0A    @Override%0A    public boolean equals(Object obj) %7B%0A        if(obj instanceof ExtendedTypeHeader) %7B%0A            ExtendedTypeHeader other = (ExtendedTypeHeader) obj;%0A            return this.type == other.type && this.length == other.length;%0A        %7D%0A        return false;%0A    %7D
 %0A%7D%0A

Implement hashCode and equals in ExtendedTypeHeader