2015-03-13 18:52:59 +00:00
|
|
|
/* Copyright (c) 2008-2015, Avian Contributors
|
2008-02-19 18:06:52 +00: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 22:36:51 +00:00
|
|
|
package java.util;
|
|
|
|
|
|
|
|
public interface Collection<T> extends Iterable<T> {
|
|
|
|
public int size();
|
|
|
|
|
2007-11-07 00:41:53 +00:00
|
|
|
public boolean isEmpty();
|
|
|
|
|
2009-04-22 16:03:53 +00:00
|
|
|
public boolean contains(Object element);
|
2007-07-22 19:06:21 +00:00
|
|
|
|
2013-04-29 17:32:56 +00:00
|
|
|
public boolean containsAll(Collection<?> c);
|
|
|
|
|
2007-07-22 03:47:08 +00:00
|
|
|
public boolean add(T element);
|
2007-07-21 22:36:51 +00:00
|
|
|
|
2008-02-28 18:37:10 +00:00
|
|
|
public boolean addAll(Collection<? extends T> collection);
|
|
|
|
|
2009-04-22 21:24:26 +00:00
|
|
|
public boolean remove(Object element);
|
2007-07-21 22:36:51 +00:00
|
|
|
|
2013-04-29 17:32:56 +00:00
|
|
|
public boolean removeAll(Collection<?> c);
|
|
|
|
|
2009-08-04 23:36:25 +00:00
|
|
|
public Object[] toArray();
|
|
|
|
|
2008-02-28 22:18:46 +00:00
|
|
|
public <S> S[] toArray(S[] array);
|
2008-02-28 18:37:10 +00:00
|
|
|
|
2007-07-21 22:36:51 +00:00
|
|
|
public void clear();
|
|
|
|
}
|