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
                                 java.lang.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:
        java.lang.NumberFormatException - If the provided String is null or cannot be resolved to an unsigned long id