Interface SnowflakeCacheView<T extends ISnowflake>

All Superinterfaces:
CacheView<T>, Iterable<T>
All Known Subinterfaces:
MemberCacheView, SortedSnowflakeCacheView<T>

public interface SnowflakeCacheView<T extends ISnowflake> extends CacheView<T>
CacheView implementation specifically to view ISnowflake implementations.
See Also:
  • Method Details

    • 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