CachePolicy<T extends SnowflakeEntity> class

CachePolicy is set of rules which will decide if entity should be cached.

Implementers

Constructors

CachePolicy(CachePolicyPredicate<T> _predicate)
Constructor

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

and(CachePolicy<T> other) CachePolicy<T>
Convenience method to require other policy
canCache(T entity) bool
Pure function which will decide based on given predicate if entity will be cached
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
or(CachePolicy<T> other) CachePolicy<T>
Convenience method to concatenate other policy
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

any<S extends SnowflakeEntity>(List<CachePolicy<S>> policies) CachePolicy<S>
Composes a policy by concatenating multiple other policies from list