MCPcopy Create free account
hub / github.com/cedar-policy/cedar-java / is_cache_full

Function is_cache_full

CedarJavaFFI/src/interface.rs:71–73  ·  view source on GitHub ↗

Returns true if the cache is full and the entry should not be inserted.

(map: &DashMap<String, V>, max: usize)

Source from the content-addressed store, hash-verified

69
70/// Returns true if the cache is full and the entry should not be inserted.
71fn is_cache_full<V>(map: &DashMap<String, V>, max: usize) -> bool {
72 map.len() >= max
73}
74
75fn build_err_obj(env: &JNIEnv<'_>, err: &str) -> jstring {
76 env.new_string(

Callers 2

preparsePolicySetJniFunction · 0.85
preparseSchemaJniFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected