513 lines
13 KiB
Java
513 lines
13 KiB
Java
package gnu.trove;
|
|
|
|
import java.io.IOException;
|
|
import java.io.ObjectOutputStream;
|
|
|
|
/* loaded from: classes2.dex */
|
|
class SerializationProcedure implements TDoubleByteProcedure, TDoubleDoubleProcedure, TDoubleFloatProcedure, TDoubleIntProcedure, TDoubleLongProcedure, TDoubleObjectProcedure, TDoubleProcedure, TFloatByteProcedure, TFloatDoubleProcedure, TFloatFloatProcedure, TFloatIntProcedure, TFloatLongProcedure, TFloatObjectProcedure, TFloatProcedure, TIntByteProcedure, TIntDoubleProcedure, TIntFloatProcedure, TIntIntProcedure, TIntLongProcedure, TIntObjectProcedure, TIntProcedure, TByteByteProcedure, TByteDoubleProcedure, TByteFloatProcedure, TByteIntProcedure, TByteLongProcedure, TByteObjectProcedure, TByteProcedure, TLongByteProcedure, TLongDoubleProcedure, TLongFloatProcedure, TLongIntProcedure, TLongLongProcedure, TLongObjectProcedure, TLongProcedure, TObjectByteProcedure, TObjectDoubleProcedure, TObjectFloatProcedure, TObjectIntProcedure, TObjectLongProcedure, TObjectObjectProcedure, TObjectProcedure {
|
|
private final ObjectOutputStream a;
|
|
IOException b;
|
|
|
|
SerializationProcedure(ObjectOutputStream objectOutputStream) {
|
|
this.a = objectOutputStream;
|
|
}
|
|
|
|
@Override // gnu.trove.TIntProcedure
|
|
public boolean a(int i) {
|
|
try {
|
|
this.a.writeInt(i);
|
|
return true;
|
|
} catch (IOException e) {
|
|
this.b = e;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
@Override // gnu.trove.TObjectProcedure
|
|
public boolean execute(Object obj) {
|
|
try {
|
|
this.a.writeObject(obj);
|
|
return true;
|
|
} catch (IOException e) {
|
|
this.b = e;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
@Override // gnu.trove.TByteProcedure
|
|
public boolean a(byte b) {
|
|
try {
|
|
this.a.writeByte(b);
|
|
return true;
|
|
} catch (IOException e) {
|
|
this.b = e;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
@Override // gnu.trove.TDoubleProcedure
|
|
public boolean a(double d) {
|
|
try {
|
|
this.a.writeDouble(d);
|
|
return true;
|
|
} catch (IOException e) {
|
|
this.b = e;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
@Override // gnu.trove.TLongProcedure
|
|
public boolean a(long j) {
|
|
try {
|
|
this.a.writeLong(j);
|
|
return true;
|
|
} catch (IOException e) {
|
|
this.b = e;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
@Override // gnu.trove.TFloatProcedure
|
|
public boolean a(float f) {
|
|
try {
|
|
this.a.writeFloat(f);
|
|
return true;
|
|
} catch (IOException e) {
|
|
this.b = e;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
@Override // gnu.trove.TObjectObjectProcedure
|
|
public boolean a(Object obj, Object obj2) {
|
|
try {
|
|
this.a.writeObject(obj);
|
|
this.a.writeObject(obj2);
|
|
return true;
|
|
} catch (IOException e) {
|
|
this.b = e;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
@Override // gnu.trove.TObjectIntProcedure
|
|
public boolean a(Object obj, int i) {
|
|
try {
|
|
this.a.writeObject(obj);
|
|
this.a.writeInt(i);
|
|
return true;
|
|
} catch (IOException e) {
|
|
this.b = e;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
@Override // gnu.trove.TObjectByteProcedure
|
|
public boolean a(Object obj, byte b) {
|
|
try {
|
|
this.a.writeObject(obj);
|
|
this.a.writeByte(b);
|
|
return true;
|
|
} catch (IOException e) {
|
|
this.b = e;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
@Override // gnu.trove.TObjectLongProcedure
|
|
public boolean a(Object obj, long j) {
|
|
try {
|
|
this.a.writeObject(obj);
|
|
this.a.writeLong(j);
|
|
return true;
|
|
} catch (IOException e) {
|
|
this.b = e;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
@Override // gnu.trove.TObjectDoubleProcedure
|
|
public boolean a(Object obj, double d) {
|
|
try {
|
|
this.a.writeObject(obj);
|
|
this.a.writeDouble(d);
|
|
return true;
|
|
} catch (IOException e) {
|
|
this.b = e;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
@Override // gnu.trove.TObjectFloatProcedure
|
|
public boolean a(Object obj, float f) {
|
|
try {
|
|
this.a.writeObject(obj);
|
|
this.a.writeFloat(f);
|
|
return true;
|
|
} catch (IOException e) {
|
|
this.b = e;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
@Override // gnu.trove.TIntObjectProcedure
|
|
public boolean a(int i, Object obj) {
|
|
try {
|
|
this.a.writeInt(i);
|
|
this.a.writeObject(obj);
|
|
return true;
|
|
} catch (IOException e) {
|
|
this.b = e;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
@Override // gnu.trove.TIntIntProcedure
|
|
public boolean a(int i, int i2) {
|
|
try {
|
|
this.a.writeInt(i);
|
|
this.a.writeInt(i2);
|
|
return true;
|
|
} catch (IOException e) {
|
|
this.b = e;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
@Override // gnu.trove.TIntLongProcedure
|
|
public boolean a(int i, long j) {
|
|
try {
|
|
this.a.writeInt(i);
|
|
this.a.writeLong(j);
|
|
return true;
|
|
} catch (IOException e) {
|
|
this.b = e;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
@Override // gnu.trove.TIntDoubleProcedure
|
|
public boolean a(int i, double d) {
|
|
try {
|
|
this.a.writeInt(i);
|
|
this.a.writeDouble(d);
|
|
return true;
|
|
} catch (IOException e) {
|
|
this.b = e;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
@Override // gnu.trove.TIntFloatProcedure
|
|
public boolean a(int i, float f) {
|
|
try {
|
|
this.a.writeInt(i);
|
|
this.a.writeFloat(f);
|
|
return true;
|
|
} catch (IOException e) {
|
|
this.b = e;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
@Override // gnu.trove.TByteByteProcedure
|
|
public boolean a(byte b, byte b2) {
|
|
try {
|
|
this.a.writeByte(b);
|
|
this.a.writeByte(b2);
|
|
return true;
|
|
} catch (IOException e) {
|
|
this.b = e;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
@Override // gnu.trove.TByteObjectProcedure
|
|
public boolean a(byte b, Object obj) {
|
|
try {
|
|
this.a.writeByte(b);
|
|
this.a.writeObject(obj);
|
|
return true;
|
|
} catch (IOException e) {
|
|
this.b = e;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
@Override // gnu.trove.TByteIntProcedure
|
|
public boolean a(byte b, int i) {
|
|
try {
|
|
this.a.writeByte(b);
|
|
this.a.writeInt(i);
|
|
return true;
|
|
} catch (IOException e) {
|
|
this.b = e;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
@Override // gnu.trove.TByteLongProcedure
|
|
public boolean a(byte b, long j) {
|
|
try {
|
|
this.a.writeByte(b);
|
|
this.a.writeLong(j);
|
|
return true;
|
|
} catch (IOException e) {
|
|
this.b = e;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
@Override // gnu.trove.TByteDoubleProcedure
|
|
public boolean a(byte b, double d) {
|
|
try {
|
|
this.a.writeByte(b);
|
|
this.a.writeDouble(d);
|
|
return true;
|
|
} catch (IOException e) {
|
|
this.b = e;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
@Override // gnu.trove.TByteFloatProcedure
|
|
public boolean a(byte b, float f) {
|
|
try {
|
|
this.a.writeByte(b);
|
|
this.a.writeFloat(f);
|
|
return true;
|
|
} catch (IOException e) {
|
|
this.b = e;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
@Override // gnu.trove.TLongObjectProcedure
|
|
public boolean a(long j, Object obj) {
|
|
try {
|
|
this.a.writeLong(j);
|
|
this.a.writeObject(obj);
|
|
return true;
|
|
} catch (IOException e) {
|
|
this.b = e;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
@Override // gnu.trove.TLongIntProcedure
|
|
public boolean a(long j, int i) {
|
|
try {
|
|
this.a.writeLong(j);
|
|
this.a.writeInt(i);
|
|
return true;
|
|
} catch (IOException e) {
|
|
this.b = e;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
@Override // gnu.trove.TLongLongProcedure
|
|
public boolean a(long j, long j2) {
|
|
try {
|
|
this.a.writeLong(j);
|
|
this.a.writeLong(j2);
|
|
return true;
|
|
} catch (IOException e) {
|
|
this.b = e;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
@Override // gnu.trove.TLongDoubleProcedure
|
|
public boolean a(long j, double d) {
|
|
try {
|
|
this.a.writeLong(j);
|
|
this.a.writeDouble(d);
|
|
return true;
|
|
} catch (IOException e) {
|
|
this.b = e;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
@Override // gnu.trove.TLongFloatProcedure
|
|
public boolean a(long j, float f) {
|
|
try {
|
|
this.a.writeLong(j);
|
|
this.a.writeFloat(f);
|
|
return true;
|
|
} catch (IOException e) {
|
|
this.b = e;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
@Override // gnu.trove.TDoubleObjectProcedure
|
|
public boolean a(double d, Object obj) {
|
|
try {
|
|
this.a.writeDouble(d);
|
|
this.a.writeObject(obj);
|
|
return true;
|
|
} catch (IOException e) {
|
|
this.b = e;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
@Override // gnu.trove.TDoubleIntProcedure
|
|
public boolean a(double d, int i) {
|
|
try {
|
|
this.a.writeDouble(d);
|
|
this.a.writeInt(i);
|
|
return true;
|
|
} catch (IOException e) {
|
|
this.b = e;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
@Override // gnu.trove.TDoubleLongProcedure
|
|
public boolean a(double d, long j) {
|
|
try {
|
|
this.a.writeDouble(d);
|
|
this.a.writeLong(j);
|
|
return true;
|
|
} catch (IOException e) {
|
|
this.b = e;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
@Override // gnu.trove.TDoubleDoubleProcedure
|
|
public boolean a(double d, double d2) {
|
|
try {
|
|
this.a.writeDouble(d);
|
|
this.a.writeDouble(d2);
|
|
return true;
|
|
} catch (IOException e) {
|
|
this.b = e;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
@Override // gnu.trove.TDoubleFloatProcedure
|
|
public boolean a(double d, float f) {
|
|
try {
|
|
this.a.writeDouble(d);
|
|
this.a.writeFloat(f);
|
|
return true;
|
|
} catch (IOException e) {
|
|
this.b = e;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
@Override // gnu.trove.TFloatObjectProcedure
|
|
public boolean a(float f, Object obj) {
|
|
try {
|
|
this.a.writeFloat(f);
|
|
this.a.writeObject(obj);
|
|
return true;
|
|
} catch (IOException e) {
|
|
this.b = e;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
@Override // gnu.trove.TFloatIntProcedure
|
|
public boolean a(float f, int i) {
|
|
try {
|
|
this.a.writeFloat(f);
|
|
this.a.writeInt(i);
|
|
return true;
|
|
} catch (IOException e) {
|
|
this.b = e;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
@Override // gnu.trove.TFloatLongProcedure
|
|
public boolean a(float f, long j) {
|
|
try {
|
|
this.a.writeFloat(f);
|
|
this.a.writeLong(j);
|
|
return true;
|
|
} catch (IOException e) {
|
|
this.b = e;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
@Override // gnu.trove.TFloatDoubleProcedure
|
|
public boolean a(float f, double d) {
|
|
try {
|
|
this.a.writeFloat(f);
|
|
this.a.writeDouble(d);
|
|
return true;
|
|
} catch (IOException e) {
|
|
this.b = e;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
@Override // gnu.trove.TFloatFloatProcedure
|
|
public boolean a(float f, float f2) {
|
|
try {
|
|
this.a.writeFloat(f);
|
|
this.a.writeFloat(f2);
|
|
return true;
|
|
} catch (IOException e) {
|
|
this.b = e;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
@Override // gnu.trove.TDoubleByteProcedure
|
|
public boolean a(double d, byte b) {
|
|
try {
|
|
this.a.writeDouble(d);
|
|
this.a.writeByte(b);
|
|
return true;
|
|
} catch (IOException e) {
|
|
this.b = e;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
@Override // gnu.trove.TFloatByteProcedure
|
|
public boolean a(float f, byte b) {
|
|
try {
|
|
this.a.writeFloat(f);
|
|
this.a.writeByte(b);
|
|
return true;
|
|
} catch (IOException e) {
|
|
this.b = e;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
@Override // gnu.trove.TIntByteProcedure
|
|
public boolean a(int i, byte b) {
|
|
try {
|
|
this.a.writeInt(i);
|
|
this.a.writeByte(b);
|
|
return true;
|
|
} catch (IOException e) {
|
|
this.b = e;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
@Override // gnu.trove.TLongByteProcedure
|
|
public boolean a(long j, byte b) {
|
|
try {
|
|
this.a.writeLong(j);
|
|
this.a.writeByte(b);
|
|
return true;
|
|
} catch (IOException e) {
|
|
this.b = e;
|
|
return false;
|
|
}
|
|
}
|
|
}
|