MCPcopy Index your code
hub / github.com/cedar-policy/cedar-java / add

Method add

CedarJavaFFI/src/jset.rs:50–55  ·  view source on GitHub ↗

Add an item to the set

(&mut self, env: &mut JNIEnv<'a>, v: T)

Source from the content-addressed store, hash-verified

48
49 /// Add an item to the set
50 pub fn add(&mut self, env: &mut JNIEnv<'a>, v: T) -> Result<()> {
51 let value = JValueGen::Object(v.as_ref());
52 env.call_method(&self.obj, "add", "(Ljava/lang/Object;)Z", &[value])?;
53 self.size += 1;
54 Ok(())
55 }
56}
57
58impl<'a, T> AsRef<JObject<'a>> for Set<'a, T> {

Callers 2

parse_policies_internalFunction · 0.45
try_fromMethod · 0.45

Calls 2

ObjectInterface · 0.85
as_refMethod · 0.45

Tested by

no test coverage detected