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

package io.netty.handler.codec.quic;

public enum QuicPacketType
{
    INITIAL, 
    RETRY, 
    HANDSHAKE, 
    ZERO_RTT, 
    SHORT, 
    VERSION_NEGOTIATION;
    
    static QuicPacketType of(final byte type) {
        switch (type) {
            case 1: {
                return QuicPacketType.INITIAL;
            }
            case 2: {
                return QuicPacketType.RETRY;
            }
            case 3: {
                return QuicPacketType.HANDSHAKE;
            }
            case 4: {
                return QuicPacketType.ZERO_RTT;
            }
            case 5: {
                return QuicPacketType.SHORT;
            }
            case 6: {
                return QuicPacketType.VERSION_NEGOTIATION;
            }
            default: {
                throw new IllegalArgumentException("Unknown QUIC packet type: " + type);
            }
        }
    }
}
