Add a single item and refresh the {@code RecyclerView} by calling
{@code notifyItemInserted()}.

@param item item to add
163197
public void addItem(T item) {
        mListItems.add(item);
        notifyItemInserted(mListItems.indexOf(item));
    }
230207
public synchronized void put(byte[] item)
   {
      if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "put", item);

      checkValid();
      getCurrentByteBuffer(item.length).put(item);

      if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "put");
   }
818586
public void addItems(Iterable<T> items) {
        synchronized (this) {
            for (T i : items) {
                this.items.add(i);
            }
            semaphore.release();
        }
    }
717676
def addTopLevelItem(self, item):
        
        vitem = item.viewItem()
        
        self.treeWidget().addTopLevelItem(item)
        self.viewWidget().scene().addItem(vitem)
        
        item._viewItem = weakref.ref(vitem)
        
        if self.updatesEnabled():
            try:
                item.sync(recursive=True)
            except AttributeError:
                pass
564568
public void onItemBind(int position, T item) {
        if (onItemBind != null) {
            variableId = VAR_INVALID;
            layoutRes = LAYOUT_NONE;
            onItemBind.onItemBind(this, position, item);
            if (variableId == VAR_INVALID) {
                throw new IllegalStateException("variableId not set in onItemBind()");
            }
            if (layoutRes == LAYOUT_NONE) {
                throw new IllegalStateException("layoutRes not set in onItemBind()");
            }
        }
    }
929762
def append(self, item):
    
    if self.should_flush():
      self.flush()
    self.items.append(item)
471621
public void addItem(@Nonnull final ExpressionItem item) {
    if (item == null) {
      throw new PreprocessorException("[Expression]Item is null", this.sources, this.includeStack, null);
    }

    if (last.isEmptySlot()) {
      last = new ExpressionTreeElement(item, this.includeStack, this.sources);
    } else {
      last = last.addTreeElement(new ExpressionTreeElement(item, this.includeStack, this.sources));
    }
  }
1310615
def add(self, item):
        
        if isinstance(item, list):
            self.rows.append(Row(item))
        elif isinstance(item, Row):
            self.rows.append(item)
        else:
            raise InvalidMessageItemError(item, item.__class__)
1302268
public function add($item)
    {
        if ($item instanceof ItemInterface) {
            $this->items[] = $item;
        } else {
            $this->items[] = new MulticardsItem($item);
        }
    }
462802
void add(T item) {
    int i = nextIndex.getAndIncrement() % data.length();
    data.set(i, item);
  }
1046845
public void add(Item item, TransactionCommon transaction)
                    throws MessageStoreException, SIResourceException {
        if (TraceComponent.isAnyTracingEnabled()
            && tc.isEntryEnabled())
            SibTr.entry(tc, "add", new Object[] { item, transaction });

        Transaction msTran = resolveAndEnlistMsgStoreTransaction(transaction);
        _persistentStore.addItem(item, msTran);

        if (TraceComponent.isAnyTracingEnabled()
            && tc.isEntryEnabled())
            SibTr.exit(tc, "add");
    }
601489
public void replace(T item) throws IOException {
        removeAll((Class)item.getClass());
        data.add(item);
        onModified();
    }
666144
public void addNotCombine(Item item)
    {
        Item innerItem = trie.get(item.key);
        if (innerItem == null)
        {
            innerItem = item;
            trie.put(innerItem.key, innerItem);
        }
    }
25340
@Override
    public void addOrUpdateItem(T item) {
        synchronized (LOCK) {
            // Update memory cache
            cache.onObjectUpdated(item.getEngineId(), item);

            List<T> items = new ArrayList<T>();
            items.add(item);
            asyncStorageInt.addOrUpdateItems(items);

            for (ListEngineDisplayListener<T> l : listeners) {
                l.addOrUpdate(item);
            }
        }
    }
529826
protected final void itemHasBeenRestored(AbstractItem item)
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "itemHasBeenRestored", item);

        super.itemHasBeenRestored(item);
        _setWatermarks((ItemStream)item);

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "itemHasBeenRestored");
    }
1339363
public void insertAdapterItem(TwinTextItem item, int index) {
        int selection = getSelectedItemPosition();
        Object selectedItem = getSelectedItem();
        ((PickerSpinnerAdapter) getAdapter()).insert(item, index);
        // select the new item if there was an equal temporary item selected
        if(selectedItem.equals(item))
            setSelectionQuietly(index);
        // otherwise keep track when inserting above the selection
        else if(index <= selection)
            setSelectionQuietly(selection+1);
    }
870739
@Override
    public void add(TopLevelItem item) throws IOException {
        synchronized (this) {
            jobNames.add(item.getRelativeNameFrom(getOwner().getItemGroup()));
        }
        save();
    }