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

package io.netty.handler.codec.http3;

import java.util.Collections;
import java.util.stream.Collectors;
import java.util.function.Function;
import java.util.Arrays;
import org.jetbrains.annotations.Nullable;
import java.util.Map;

public enum Http3SettingIdentifier
{
    HTTP3_SETTINGS_QPACK_MAX_TABLE_CAPACITY(1L), 
    HTTP3_SETTINGS_MAX_FIELD_SECTION_SIZE(6L), 
    HTTP3_SETTINGS_QPACK_BLOCKED_STREAMS(7L), 
    HTTP3_SETTINGS_ENABLE_CONNECT_PROTOCOL(8L), 
    HTTP3_SETTINGS_H3_DATAGRAM(51L);
    
    private final long id;
    private static final Map<Long, Http3SettingIdentifier> LOOKUP;
    
    private Http3SettingIdentifier(final long id) {
        this.id = id;
    }
    
    public long id() {
        return this.id;
    }
    
    @Nullable
    public static Http3SettingIdentifier fromId(final long id) {
        return Http3SettingIdentifier.LOOKUP.get(id);
    }
    
    static {
        LOOKUP = Collections.unmodifiableMap((Map<? extends Long, ? extends Http3SettingIdentifier>)Arrays.stream(values()).collect(Collectors.toMap((Function<? super Http3SettingIdentifier, ? extends K>)Http3SettingIdentifier::id, (Function<? super Http3SettingIdentifier, ? extends V>)Function.identity())));
    }
}
