[]Struct jni_android_sys::java::util::concurrent::BlockingDeque

#[repr(transparent)]
pub struct BlockingDeque(_);

public interface BlockingDeque

Required feature: java-util-concurrent-BlockingDeque

Methods

impl BlockingDeque

pub fn add_first<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<()>
[src]

addFirst

Required features: "java-lang-Object"

pub fn add_last<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<()>
[src]

addLast

Required features: "java-lang-Object"

pub fn offer_first_object<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<bool>
[src]

offerFirst

Required features: "java-lang-Object"

pub fn offer_last_object<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<bool>
[src]

offerLast

Required features: "java-lang-Object"

pub fn put_first<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<()>
[src]

putFirst

Required features: "java-lang-Object"

pub fn put_last<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<()>
[src]

putLast

Required features: "java-lang-Object"

pub fn offer_first_object_long_time_unit<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>,
    arg1: i64,
    arg2: impl Into<Option<&'env TimeUnit>>
) -> Result<bool>
[src]

offerFirst

Required features: "java-lang-Object", "java-util-concurrent-TimeUnit"

pub fn offer_last_object_long_time_unit<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>,
    arg1: i64,
    arg2: impl Into<Option<&'env TimeUnit>>
) -> Result<bool>
[src]

offerLast

Required features: "java-lang-Object", "java-util-concurrent-TimeUnit"

pub fn take_first<'env>(&'env self) -> Result<Option<Local<'env, Object>>>[src]

takeFirst

Required features: "java-lang-Object"

pub fn take_last<'env>(&'env self) -> Result<Option<Local<'env, Object>>>[src]

takeLast

Required features: "java-lang-Object"

pub fn poll_first<'env>(
    &'env self,
    arg0: i64,
    arg1: impl Into<Option<&'env TimeUnit>>
) -> Result<Option<Local<'env, Object>>>
[src]

pollFirst

Required features: "java-lang-Object", "java-util-concurrent-TimeUnit"

pub fn poll_last<'env>(
    &'env self,
    arg0: i64,
    arg1: impl Into<Option<&'env TimeUnit>>
) -> Result<Option<Local<'env, Object>>>
[src]

pollLast

Required features: "java-lang-Object", "java-util-concurrent-TimeUnit"

pub fn remove_first_occurrence<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<bool>
[src]

removeFirstOccurrence

Required features: "java-lang-Object"

pub fn remove_last_occurrence<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<bool>
[src]

removeLastOccurrence

Required features: "java-lang-Object"

pub fn add<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<bool>
[src]

add

Required features: "java-lang-Object"

pub fn offer_object<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<bool>
[src]

offer

Required features: "java-lang-Object"

pub fn put<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<()>
[src]

put

Required features: "java-lang-Object"

pub fn offer_object_long_time_unit<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>,
    arg1: i64,
    arg2: impl Into<Option<&'env TimeUnit>>
) -> Result<bool>
[src]

offer

Required features: "java-lang-Object", "java-util-concurrent-TimeUnit"

pub fn remove<'env>(&'env self) -> Result<Option<Local<'env, Object>>>[src]

remove

Required features: "java-lang-Object"

pub fn poll<'env>(&'env self) -> Result<Option<Local<'env, Object>>>[src]

poll

Required features: "java-lang-Object"

pub fn take<'env>(&'env self) -> Result<Option<Local<'env, Object>>>[src]

take

Required features: "java-lang-Object"

pub fn poll_long_time_unit<'env>(
    &'env self,
    arg0: i64,
    arg1: impl Into<Option<&'env TimeUnit>>
) -> Result<Option<Local<'env, Object>>>
[src]

poll

Required features: "java-lang-Object", "java-util-concurrent-TimeUnit"

pub fn element<'env>(&'env self) -> Result<Option<Local<'env, Object>>>[src]

element

Required features: "java-lang-Object"

pub fn peek<'env>(&'env self) -> Result<Option<Local<'env, Object>>>[src]

peek

Required features: "java-lang-Object"

pub fn remove_object<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<bool>
[src]

remove

Required features: "java-lang-Object"

pub fn contains<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<bool>
[src]

contains

Required features: "java-lang-Object"

pub fn size<'env>(&'env self) -> Result<i32>[src]

pub fn iterator<'env>(&'env self) -> Result<Option<Local<'env, Iterator>>>[src]

iterator

Required features: "java-util-Iterator"

pub fn push<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<()>
[src]

push

Required features: "java-lang-Object"

Methods from Deref<Target = Object>

pub fn get_class<'env>(&'env self) -> Result<Option<Local<'env, Class>>>[src]

getClass

Required features: "java-lang-Class"

pub fn hash_code<'env>(&'env self) -> Result<i32>[src]

pub fn equals<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<bool>
[src]

equals

Required features: "java-lang-Object"

pub fn to_string<'env>(&'env self) -> Result<Option<Local<'env, String>>>[src]

toString

Required features: "java-lang-String"

pub fn notify<'env>(&'env self) -> Result<()>[src]

pub fn notify_all<'env>(&'env self) -> Result<()>[src]

pub fn wait_long<'env>(&'env self, arg0: i64) -> Result<()>[src]

pub fn wait_long_int<'env>(&'env self, arg0: i64, arg1: i32) -> Result<()>[src]

pub fn wait<'env>(&'env self) -> Result<()>[src]

Trait Implementations

impl AsRef<BlockingQueue> for BlockingDeque

impl AsRef<Deque> for BlockingDeque

impl AsRef<BlockingDeque> for LinkedBlockingDeque

impl Deref for BlockingDeque

type Target = Object

The resulting type after dereferencing.

impl AsValidJObjectAndEnv for BlockingDeque

impl AsJValue for BlockingDeque

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]