All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.twitch4j.common.enums.TwitchEnum Maven / Gradle / Ivy

package com.github.twitch4j.common.enums;

import lombok.Value;
import org.jetbrains.annotations.NotNull;

/**
 * Wrapper for a Twitch-specified enum where all of the possible values may not be documented.
 *
 * @param  the underlying enum type
 */
@Value
public class TwitchEnum> {

    /**
     * The parsed enum value.
     */
    @NotNull
    E value;

    /**
     * The raw string provided by Twitch to represent this enum.
     * 

* This field is useful when {@link #getValue()} yields {@code UNKNOWN}. * Please report such cases to our issue tracker. */ @NotNull String rawValue; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy