Interface SnowflakeCacheView<T extends ISnowflake>

    • Method Detail

      • getElementById

        @Nullable
        T getElementById​(long id)
        Retrieves the entity represented by the provided ID.
        Parameters:
        id - The ID of the entity
        Returns:
        Possibly-null entity for the specified ID
      • getElementById

        @Nullable
        default T getElementById​(@Nonnull
                                 String id)
        Retrieves the entity represented by the provided ID.
        Parameters:
        id - The ID of the entity
        Returns:
        Possibly-null entity for the specified ID
        Throws:
        NumberFormatException - If the provided String is null or cannot be resolved to an unsigned long id