Interface SkuSnowflake

All Superinterfaces:
ISnowflake

public interface SkuSnowflake extends ISnowflake
Represents an abstract SKU reference by only the SKU ID.

This is used for methods which only need a SKU ID to function, you cannot use this for getting any properties.

  • Method Details

    • fromId

      @Nonnull static SkuSnowflake fromId(long id)
      Creates a SKU instance which only wraps an ID.
      Parameters:
      id - The SKU id
      Returns:
      A SKU snowflake instance
    • fromId

      @Nonnull static SkuSnowflake fromId(@Nonnull String id)
      Creates a SKU instance which only wraps an ID.
      Parameters:
      id - The SKU id
      Returns:
      A SKU snowflake instance
      Throws:
      IllegalArgumentException - If the provided ID is not a valid snowflake