2014-04-20 20:14:48 -06:00
|
|
|
/* Copyright (c) 2008-2014, Avian Contributors
|
2008-02-19 11:06:52 -07:00
|
|
|
|
|
|
|
Permission to use, copy, modify, and/or distribute this software
|
|
|
|
for any purpose with or without fee is hereby granted, provided
|
|
|
|
that the above copyright notice and this permission notice appear
|
|
|
|
in all copies.
|
|
|
|
|
|
|
|
There is NO WARRANTY for this software. See license.txt for
|
|
|
|
details. */
|
|
|
|
|
2007-07-21 16:36:51 -06:00
|
|
|
package java.util;
|
|
|
|
|
|
|
|
public interface Collection<T> extends Iterable<T> {
|
|
|
|
public int size();
|
|
|
|
|
2007-11-06 17:41:53 -07:00
|
|
|
public boolean isEmpty();
|
|
|
|
|
2009-04-22 10:03:53 -06:00
|
|
|
public boolean contains(Object element);
|
2007-07-22 13:06:21 -06:00
|
|
|
|
2013-04-29 11:32:56 -06:00
|
|
|
public boolean containsAll(Collection<?> c);
|
|
|
|
|
2007-07-21 21:47:08 -06:00
|
|
|
public boolean add(T element);
|
2007-07-21 16:36:51 -06:00
|
|
|
|
2008-02-28 11:37:10 -07:00
|
|
|
public boolean addAll(Collection<? extends T> collection);
|
|
|
|
|
2009-04-22 15:24:26 -06:00
|
|
|
public boolean remove(Object element);
|
2007-07-21 16:36:51 -06:00
|
|
|
|
2013-04-29 11:32:56 -06:00
|
|
|
public boolean removeAll(Collection<?> c);
|
|
|
|
|
2009-08-04 17:36:25 -06:00
|
|
|
public Object[] toArray();
|
|
|
|
|
2008-02-28 15:18:46 -07:00
|
|
|
public <S> S[] toArray(S[] array);
|
2008-02-28 11:37:10 -07:00
|
|
|
|
2007-07-21 16:36:51 -06:00
|
|
|
public void clear();
|
|
|
|
}
|