APISonar


java.util.ArrayList.remove

> java > util > ArrayList > remove
java APIs util APIs ArrayList APIs remove APIs

Example 1
private ArrayList<T> myElements;

  public boolean remove(Object o) {
    if (myHashSet.remove(o)){
      myElements.remove(o);
      return true;
    }
    else{
      return false;
    }
  }
Example 2
protected ArrayList<T> elements = new ArrayList<T>();

	public boolean remove(int i) {
		T o = elements.remove(i);
        return super.remove(o);
	}
Example 3
private ArrayList<T> mOriginalValues;

    public void remove(T object) {
        if (mOriginalValues != null) {
            synchronized (mLock) {
                mOriginalValues.remove(object);
            }
        } else {
            mObjects.remove(object);
        }
        if (mNotifyOnChange) notifyDataSetChanged();
    }
Example 4
transient private ArrayList m_out;

  public void remove(Edge e) {
    m_in.remove(e);
    m_out.remove(e);
  }
Example 5
private ArrayList<T> items = new ArrayList<>();

    public void remove(T object) {
        items.remove(object);
        notifyDataSetChanged();
    }
Example 6
private ArrayList<String> values = new ArrayList<String>();

    public void removeAttribute(String name) {
        int i = names.indexOf(name);
        if (i != -1) {
            names.remove(i);
            types.remove(i);
            values.remove(i);
        }
    }
Example 7
private ArrayList<Integer> perTripFlags;

    public void removeHop(int stopIndex, int hop) {
        runningTimes[stopIndex].remove(hop);
        departureTimes[stopIndex].remove(hop);
        dwellTimes[stopIndex].remove(hop);
        arrivalTimes[stopIndex].remove(hop);
        if (stopIndex == 0) {
            perTripFlags.remove(hop);
            trips.remove(hop);
        }
    }
Example 8
private ArrayList myArrayList;

	public boolean remove(Object o) {
		// TODO Auto-generated method stub
		return myArrayList.remove(o);
	}
Example 9
protected ArrayList m_clauses = new ArrayList(2);

    public boolean remove(Predicate p) {
        if ( m_clauses.remove(p) ) {
            fireExpressionChange();
            return true;
        } else {
            return false;
        }
    }
Example 10
private ArrayList<V> values;

    private void remoteItemImpl(long id) {
        for (int i = 0; i < values.size(); i++) {
            if (values.get(i).getEngineId() == id) {
                values.remove(i);
                jsValues.remove(i);
                if (isOverlaysSupported) {
                    markAsDirty(i);
                    jsOverlays.remove(i);
                    isOverlayDirty.add(true);
                }
                break;
            }
        }
    }
Example 11
private ArrayList    conditions;

	public void removeCondition(int i)
	{
		conditions.remove(i);
	}
Example 12
private ArrayList    fields;

	public void removeField(int i)
	{
		fields.remove(i);
	}
Example 13
private ArrayList itemIds = new ArrayList();

    public boolean removeItem(Object itemId) {

        if (items.remove(itemId) == null) {
            return false;
        }
        itemIds.remove(itemId);
        if (filteredItemIds != null) {
            filteredItemIds.remove(itemId);
        }

        fireContentsChange(-1);

        return true;
    }
Example 14
static ArrayList prefixes = new ArrayList();

    public void removeAttribute(String n)
    {
        attributes.remove(n);
        if (n.endsWith(".*"))
            prefixes.remove(n.substring(0,n.length()-2));
    }
Example 15
public ArrayList            jobcopies;

    public void removeJobEntry(int i)
    {
        jobcopies.remove(i);
        setChanged();
    }
Example 16
public ArrayList            jobhops;

    public void removeJobHop(int i)
    {
        jobhops.remove(i);
        setChanged();
    }
Example 17
private final ArrayList<A> mHistoryList = new ArrayList<A>();

    public void remove(A item) {
        if (mHistoryList.remove(item))
            notifyHistoryChanged();
    }
Example 18
private ArrayList<String> listPhoneTypes;

	private void removeHal() {

		for (int i = 0; i < listPhoneTypes.size(); i++) {
			if (listPhoneTypes.get(i).equals("HLT")) {
				listPhoneTypes.remove(i);
				listPhoneSym.remove(i);
				i--;
			}
		}
	}
Example 19
private final ArrayList<String> m_arrOrderedNames = new ArrayList<String>(5);

    public void remove(String strArgName) {
        m_hashValues.remove(strArgName);
        m_arrOrderedNames.remove(strArgName);
    }
Example 20
private final ArrayList<Object> list             = new ArrayList<Object>();

  public boolean remove(Object o) {
    setDirty();
    int indexOfO = list.indexOf(o);
    serializedList.remove(indexOfO);
    return list.remove(o);
  }
Example 21
private ArrayList<T> value = new ArrayList<T>();

    public K remove(int offset) {
        value.remove(offset);
        firePropertyChanged();
        return (K)parent.parent;
    }
Example 22
ArrayList<E> storage = new ArrayList<>();

	public E remove() {
		if(isEmpty())
			throw new NoSuchElementException();
		return storage.remove(storage.size() - 1);
	}
Example 23
private ArrayList<String> strings = new ArrayList<>();

	public void delete(int elementNum) {
		synchronized (selected) {
			strings.remove(elementNum);
			images.remove(elementNum);
			selected.remove(elementNum);

			if (selected.size() == 0) {
				selectedIndex = -1;
			}

			if (list != null) {
				adapter.delete(elementNum);
			}
		}
	}
Example 24
private final ArrayList<String> deque = new ArrayList();

	public E remove(final String id) {
		if (!containsId(id)) {
			return null;
		}
		deque.remove(id);
		return map.remove(id);
	}
Example 25
private final ArrayList<T> _list;

  public T pop()
  {
    if( isEmpty() )
    {
      throw new EmptyStackException();
    }
    return _list.remove( size() - 1 );
  }