uk.org.retep.annotations.WriteLock.<init>()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(2.8k)|赞(0)|评价(0)|浏览(119)

本文整理了Java中uk.org.retep.annotations.WriteLock.<init>()方法的一些代码示例,展示了WriteLock.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WriteLock.<init>()方法的具体详情如下:
包路径:uk.org.retep.annotations.WriteLock
类名称:WriteLock
方法名:<init>

WriteLock.<init>介绍

暂无

代码示例

代码示例来源:origin: uk.org.retep.tools/collections

@Override
@WriteLock
public boolean remove( final Object o )
{
  return deque.remove( o );
}

代码示例来源:origin: uk.org.retep.tools/collections

@Override
@WriteLock
public E removeFirst()
{
  return deque.removeFirst();
}

代码示例来源:origin: uk.org.retep.tools/collections

/**
 * {@inheritDoc}
 */
@Override
@WriteLock
public void clear()
{
  set.clear();
}

代码示例来源:origin: uk.org.retep.tools/collections

@Override
  @WriteLock
  public void remove()
  {
    it.remove();
  }
};

代码示例来源:origin: uk.org.retep.tools/collections

@Override
@WriteLock
public boolean removeAll( final Collection<?> c )
{
  return list.removeAll( c );
}

代码示例来源:origin: uk.org.retep.tools/collections

@Override
@WriteLock
public boolean offer( final E e )
{
  return queue.offer( e );
}

代码示例来源:origin: uk.org.retep.tools/collections

@Override
@WriteLock
public E poll()
{
  return queue.poll();
}

代码示例来源:origin: uk.org.retep.tools/collections

@Override
  @WriteLock
  public E remove()
  {
    return queue.remove();
  }
}

代码示例来源:origin: uk.org.retep.tools/collections

@Override
  @WriteLock
  public void remove()
  {
    it.remove();
  }
};

代码示例来源:origin: uk.org.retep.tools/collections

@Override
@WriteLock
public E pollFirst()
{
  return deque.pollFirst();
}

代码示例来源:origin: uk.org.retep.tools/collections

@Override
@WriteLock
public E pop()
{
  return deque.pop();
}

代码示例来源:origin: uk.org.retep.tools/collections

@Override
@WriteLock
public void push( E e )
{
  deque.push( e );
}

代码示例来源:origin: uk.org.retep.tools/collections

/**
 * {@inheritDoc}
 */
@Override
@WriteLock
public boolean retainAll( Collection<?> c )
{
  return set.retainAll( c );
}

代码示例来源:origin: uk.org.retep.tools/collections

@WriteLock
@Override
public void add( final int index, final E element )
{
  list.add( index, element );
}

代码示例来源:origin: uk.org.retep.tools/collections

@Override
@WriteLock
public boolean retainAll( final Collection<?> c )
{
  return list.retainAll( c );
}

代码示例来源:origin: uk.org.retep.tools/collections

@Override
@WriteLock
public E set( final int index, final E element )
{
  return list.set( index, element );
}

代码示例来源:origin: uk.org.retep.tools/collections

@Override
@WriteLock
public boolean offerLast( E e )
{
  return deque.offerLast( e );
}

代码示例来源:origin: uk.org.retep.tools/collections

/**
 * Removes and returns the first element from this list.
 *
 * @return the first element from this list
 * @throws NoSuchElementException if this list is empty
 */
@WriteLock
@Override
public E removeFirst()
{
  return removeEntry( header.next );
}

代码示例来源:origin: uk.org.retep.tools/collections

@Override
@WriteLock
public boolean offer( E e )
{
  boolean added = super.offer( e );
  if( added )
  {
    e.instanceReturnedToPool();
  }
  return added;
}

代码示例来源:origin: uk.org.retep.tools/collections

@Override
@WriteLock
public void addLast( E e )
{
  super.addLast( e );
  e.instanceReturnedToPool();
}

相关文章

WriteLock类方法