io.gatling.recorder.internal.bouncycastle.oer.its.ieee1609dot2.basetypes.UINT3 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gatling-recorder-bc-shaded Show documentation
Show all versions of gatling-recorder-bc-shaded Show documentation
Shaded BouncyCastle for Gatling Recorder
package io.gatling.recorder.internal.bouncycastle.oer.its.ieee1609dot2.basetypes;
import java.math.BigInteger;
import io.gatling.recorder.internal.bouncycastle.asn1.ASN1Integer;
public class UINT3
extends UintBase
{
private static final BigInteger MAX = BigInteger.valueOf(7);
public UINT3(BigInteger value)
{
super(value);
}
public UINT3(int value)
{
super(value);
}
public UINT3(long value)
{
super(value);
}
protected UINT3(ASN1Integer integer)
{
super(integer);
}
public static UINT3 getInstance(Object o)
{
if (o instanceof UINT3)
{
return (UINT3)o;
}
if (o != null)
{
return new UINT3(ASN1Integer.getInstance(o));
}
return null;
}
@Override
protected void assertLimit()
{
if (value.signum() < 0)
{
throw new IllegalArgumentException("value must not be negative");
}
if (value.compareTo(MAX) > 0)
{
throw new IllegalArgumentException("value must not exceed " + MAX.toString(16));
}
}
}