// 
// Decompiled by Procyon v0.6.0
// 

package org.bouncycastle.oer.its.ieee1609dot2.basetypes;

import org.bouncycastle.asn1.ASN1Integer;
import java.math.BigInteger;

public class UINT3 extends UintBase
{
    private static final BigInteger MAX;
    
    public UINT3(final BigInteger bigInteger) {
        super(bigInteger);
    }
    
    public UINT3(final int n) {
        super(n);
    }
    
    public UINT3(final long n) {
        super(n);
    }
    
    protected UINT3(final ASN1Integer asn1Integer) {
        super(asn1Integer);
    }
    
    public static UINT3 getInstance(final 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 (this.value.signum() < 0) {
            throw new IllegalArgumentException("value must not be negative");
        }
        if (this.value.compareTo(UINT3.MAX) > 0) {
            throw new IllegalArgumentException("value must not exceed " + UINT3.MAX.toString(16));
        }
    }
    
    static {
        MAX = BigInteger.valueOf(7L);
    }
}
