package com.esotericsoftware.kryo; import c.e.a.a; import com.esotericsoftware.kryo.util.Util; import h0.b.a.a; public class Registration { /* renamed from: id reason: collision with root package name */ private final int f2174id; private a instantiator; private Serializer serializer; private final Class type; public Registration(Class cls, Serializer serializer, int i) { if (cls == null) { throw new IllegalArgumentException("type cannot be null."); } else if (serializer != null) { this.type = cls; this.serializer = serializer; this.f2174id = i; } else { throw new IllegalArgumentException("serializer cannot be null."); } } public int getId() { return this.f2174id; } public a getInstantiator() { return this.instantiator; } public Serializer getSerializer() { return this.serializer; } public Class getType() { return this.type; } public void setInstantiator(a aVar) { if (aVar != null) { this.instantiator = aVar; return; } throw new IllegalArgumentException("instantiator cannot be null."); } public void setSerializer(Serializer serializer) { if (serializer != null) { this.serializer = serializer; a.C0053a aVar = c.e.a.a.a; return; } throw new IllegalArgumentException("serializer cannot be null."); } public String toString() { StringBuilder L = c.d.b.a.a.L("["); L.append(this.f2174id); L.append(", "); L.append(Util.className(this.type)); L.append("]"); return L.toString(); } }