public interface SnowflakeCacheView<T extends ISnowflake> extends CacheView<T>
CacheView
implementation
specifically to view ISnowflake
implementations.Modifier and Type | Method and Description |
---|---|
static <E extends ISnowflake> |
all(java.util.Collection<SnowflakeCacheView<E>> cacheViews)
Creates a combined SnowflakeCacheView for all provided SnowflakeCacheView implementations.
|
static <E extends ISnowflake> |
all(java.util.function.Supplier<java.util.stream.Stream<SnowflakeCacheView<E>>> generator)
Creates a combined SnowflakeCacheView for all provided SnowflakeCacheView implementations.
|
T |
getElementById(long id)
Retrieves the entity represented by the provided ID.
|
default T |
getElementById(java.lang.String id)
Retrieves the entity represented by the provided ID.
|
all, all, allMembers, allMembers, allSnowflakes, allSnowflakes, asList, asSet, collect, getElementsByName, getElementsByName, isEmpty, parallelStream, size, stream
T getElementById(long id)
id
- The ID of the entitydefault T getElementById(java.lang.String id)
id
- The ID of the entityjava.lang.NumberFormatException
- If the provided String is null
or
cannot be resolved to an unsigned long idstatic <E extends ISnowflake> SnowflakeCacheView<E> all(java.util.function.Supplier<java.util.stream.Stream<SnowflakeCacheView<E>>> generator)
E
- The target type of the chaingenerator
- Stream generator of SnowflakeCacheView implementationsstatic <E extends ISnowflake> SnowflakeCacheView<E> all(java.util.Collection<SnowflakeCacheView<E>> cacheViews)
E
- The target type of the chaincacheViews
- Collection of SnowflakeCacheView implementations