Appends the specified object to the end of this container. <p>

@param id the object identifier
@param idObject the object add to the container

@see java.util.List#add(Object)
438327
public void addIdentifiableObject(String id, T idObject) {

        m_cache = null;
        if (m_uniqueIds && (m_objectsById.get(id) != null)) {
            removeObject(id);
        }
        if (m_relativeOrdered) {
            float pos = 1;
            if (!m_orderedObjectList.isEmpty()) {
                pos = m_orderedObjectList.get(m_orderedObjectList.size() - 1).getPosition() + 1;
            }
            m_orderedObjectList.add(new CmsIdObjectElement<T>(idObject, pos));
        } else {
            m_objectList.add(idObject);
        }
        if (m_uniqueIds) {
            m_objectsById.put(id, idObject);
        } else {
            List<T> prevObj = m_objectsListsById.get(id);
            if (prevObj == null) {
                List<T> list = new ArrayList<T>();
                list.add(idObject);
                m_objectsListsById.put(id, list);
            } else {
                prevObj.add(idObject);
            }
        }

    }
368256
public void addIdHasContainer(HasContainer hasContainer) {
        Preconditions.checkState(BaseStrategy.SUPPORTED_ID_BI_PREDICATE.contains(hasContainer.getBiPredicate()), "Only " + BaseStrategy.SUPPORTED_ID_BI_PREDICATE.toString() + " is supported, found " + hasContainer.getBiPredicate().getClass().toString());
        Object rawId = hasContainer.getValue();
        if (rawId instanceof Collection) {
            @SuppressWarnings("unchecked")
            Collection<Object> ids = (Collection<Object>) rawId;
            Set<String> idLabels = new HashSet<>();
            for (Object id : ids) {
                if (id instanceof RecordId) {
                    RecordId recordId = (RecordId) id;
                    idLabels.add(recordId.getSchemaTable().toString());
                } else if (id instanceof Element) {
                    SqlgElement sqlgElement = (SqlgElement) id;
                    RecordId recordId = (RecordId) sqlgElement.id();
                    idLabels.add(recordId.getSchemaTable().toString());
                } else if (id instanceof String) {
                    RecordId recordId = RecordId.from(id);
                    idLabels.add(recordId.getSchemaTable().toString());
                } else {
                    throw new IllegalStateException("id must be an Element or a RecordId, found " + id.getClass().toString());
                }
            }
            if (hasContainer.getBiPredicate() == Contains.without) {
                //The id's label needs to be added to previous labelHasContainers labels.
                //without indicates that the label needs to be queried along with the rest, 'or' logic rather than 'and'.
                if (!this.labelHasContainers.isEmpty()) {
                    Object previousHasContainerLabels = this.labelHasContainers.get(this.labelHasContainers.size() - 1).getValue();
                    List<String> mergedLabels;
                    if (previousHasContainerLabels instanceof Collection) {
                        @SuppressWarnings("unchecked") Collection<String> labels = (Collection<String>) previousHasContainerLabels;
                        mergedLabels = new ArrayList<>(labels);
                    } else {
                        String label = (String) previousHasContainerLabels;
                        mergedLabels = new ArrayList<>();
                        mergedLabels.add(label);
                    }
                    mergedLabels.addAll(idLabels);
                    this.labelHasContainers.set(this.labelHasContainers.size() - 1, new HasContainer(T.label.getAccessor(), P.within(mergedLabels)));
                }
            } else {
                this.labelHasContainers.add(new HasContainer(T.label.getAccessor(), P.within(idLabels)));
            }
        } else {
            RecordId recordId;
            if (rawId instanceof RecordId) {
                recordId = (RecordId) rawId;
            } else if (rawId instanceof Element) {
                SqlgElement sqlgElement = (SqlgElement) rawId;
                recordId = (RecordId) sqlgElement.id();
            } else if (rawId instanceof String) {
                recordId = RecordId.from(rawId);
            } else {
                throw new IllegalStateException("id must be an Element or a RecordId, found " + id.getClass().toString());
            }
            if (hasContainer.getBiPredicate() == Compare.neq) {
                if (!this.labelHasContainers.isEmpty()) {
                    Object previousHasContainerLabels = this.labelHasContainers.get(this.labelHasContainers.size() - 1).getValue();
                    List<String> mergedLabels;
                    if (previousHasContainerLabels instanceof Collection) {
                        @SuppressWarnings("unchecked") Collection<String> labels = (Collection<String>) previousHasContainerLabels;
                        mergedLabels = new ArrayList<>(labels);
                    } else {
                        String label = (String) previousHasContainerLabels;
                        mergedLabels = new ArrayList<>();
                        mergedLabels.add(label);
                    }
                    mergedLabels.add(recordId.getSchemaTable().toString());
                    this.labelHasContainers.set(this.labelHasContainers.size() - 1, new HasContainer(T.label.getAccessor(), P.within(mergedLabels)));
                }
            } else {
                this.labelHasContainers.add(new HasContainer(T.label.getAccessor(), P.eq(recordId.getSchemaTable().toString())));
            }
        }
        this.idHasContainers.add(hasContainer);
    }
542802
@POST
    @Path("close")    
    public void close(String id) {
    	Connection connection = ConnectionHolder.get().get(id);
    	try {
			connection.close();
			ConnectionHolder.get().remove(id);
		} catch (SQLException e) {
			// TODO
			throw new RuntimeException(e);
		}		
    }
903346
public void addEntry(String id, int score, RelType context)
	{
		this.score.put(id, score);
		this.context.put(id, context);
	}
31666
private Bean putIfAbsent(BeanId id) {
        Bean bean = beans.get(id);
        if (bean == null) {
            bean = Bean.create(id);
            beans.put(id, bean);
        }
        return bean;
    }
566208
public synchronized void add(int id, SICoreConnection connection) {
        if (tc.isEntryEnabled())
            SibTr.entry(tc, "add", "" + id);
        map.put(id, connection);
        if (tc.isEntryEnabled())
            SibTr.exit(tc, "add");
    }
1068658
@Override
    public void setID(String id) {
        _ID = id;
        if (_store != null) {
            _store.setID(id);
        }
    }
245613
public DBObject addObject(String objID, String tableName) {
        DBObject dbObj = new DBObject(objID, tableName);
        m_dbObjList.add(dbObj);
        return dbObj;
    }
1002737
public void addObject (int x, int y, Object object)
    {
        Record record = new Record(x, y, object);

        // if this is the very first element, we have to insert it
        // straight away because our binary search algorithm doesn't work
        // on empty arrays
        if (_size == 0) {
            _records[_size++] = record;
            return;
        }

        // figure out where to insert it
        int ipoint = binarySearch(x);

        // expand the records array if necessary
        if (_size >= _records.length) {
            int nsize = _size*2;
            Record[] records = new Record[nsize];
            System.arraycopy(_records, 0, records, 0, _size);
            _records = records;
        }

        // shift everything down
        if (ipoint < _size) {
            System.arraycopy(_records, ipoint, _records, ipoint+1,
                             _size-ipoint);
        }

        // insert the record
        _records[ipoint] = record;
        _size++;
    }
819406
final public void addIdAndRef(Integer id, Long ref, int additionalId,
      long additionalRef) {
    if (id != null) {
      MtasTreeNodeId tnId = new MtasTreeNodeId(ref, additionalId,
          additionalRef);
      ids.put(id, tnId);
    }
  }
426934
public void addId(final URI id, final String value) {
        if (id != null && value != null) {
            final URI localId = id.normalize();
            final String localValue = value.trim();
            idMap.put(localId, localValue);
        }
    }
1046707
protected void append(Object object, int index) {
		if (object == null)
			return;
		if (object instanceof String) {
			append((String) object, index);
		} else if (object instanceof StringConcatenation) {
			StringConcatenation other = (StringConcatenation) object;
			appendSegments(index, other.getSignificantContent(), other.lineDelimiter);
		} else if (object instanceof StringConcatenationClient) {
			StringConcatenationClient other = (StringConcatenationClient) object;
			other.appendTo(new SimpleTarget(this, index));
		} else {
			final String text = getStringRepresentation(object);
			if (text != null) {
				append(text, index);
			}
		}
	}
513118
@Override
  public void add(Object obj) {
    lock.writeLock().lock();
    try {
      populated = true;
      this.queueActionLocked(DeltaType.Added, obj);
    } finally {
      lock.writeLock().unlock();
    }
  }
1027613
public void setAttribute(String id, Object obj, boolean save) {
        if (save) {
            String historyAttribute = id + "history";
            Queue<Object> history = (Queue<Object>) getAttribute(historyAttribute);
            if (history == null) {
                history = new LinkedList<>();
                setAttribute(historyAttribute, history);
            }
            if (this.getAttribute(id) != null) {
                history.add(getAttribute(id));
            }
        }
        setAttribute(id, obj);
    }
581897
protected void appendId(StringBuffer html, String id) {

        html.append(" name=\"");
        html.append(id);
        html.append("\" id=\"");
        html.append(id);
        html.append("\" ");
    }
1306677
private void addObjectIdentity(final Object object) {

        if (object == null) {
            _buffer.append("null");
        } else {
            _buffer.append(object.getClass().getName());
            _buffer.append("@");
            _buffer
                    .append(Integer
                            .toHexString(System.identityHashCode(object)));
        }

    }
165852
public Guid append(Guid... guids) throws IOException {
    if (guids == null || guids.length == 0) {
      return this;
    }
    return combine(ArrayUtils.add(guids, this));
  }