Struct ejni::Map

source · []
pub struct Map<'a> {
    pub inner: Object<'a>,
    pub k_class: Class<'a>,
    pub v_class: Class<'a>,
    /* private fields */
}
Expand description

Wrapper around java.util.Map

Fields

inner: Object<'a>

The Map itself

k_class: Class<'a>

The key Class

v_class: Class<'a>

The Value Class

Implementations

Create a Map wrapper from an existing Map object. The caller must guarantee that the passed in Object implements Map and is not null.

Constructs an empty HashMap with the default initial capacity (16) and the default load factor (0.75).

Constructs an empty HashMap with the specified initial capacity and the default load factor (0.75).

Constructs an empty HashMap with the specified initial capacity and load factor.

Associates the specified value with the specified key in this map (optional operation).

Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key.

Returns true if this map contains no key-value mappings.

Returns the number of key-value mappings in this map.

Returns true if this map contains a mapping for the specified key.

Returns true if this map maps one or more keys to the specified value.

Removes the mapping for a key from this map if it is present (optional operation).

Removes the entry for the specified key only if it is currently mapped to the specified value.

Returns a Set<Map.Entry<K, V>> view of the mappings contained in this map.

Removes all of the mappings from this map.

Trait Implementations

Executes the destructor for this type. Read more

Converts this type into the (usually inferred) input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Look up the concrete type from the JVM.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.