git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6362 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2010-12-10 02:44:18 +00:00
parent 14cf7855a2
commit 5476241fa4
@@ -79,7 +79,7 @@ public class DSet<E extends DSet.Entry>
/**
* Creates a new DSet of the appropriate generic type.
*/
public static <E extends DSet.Entry> DSet<E> newDSet (Iterable<E> source)
public static <E extends DSet.Entry> DSet<E> newDSet (Iterable<? extends E> source)
{
return new DSet<E>(source);
}
@@ -104,7 +104,7 @@ public class DSet<E extends DSet.Entry>
*
* @param source an iterator from which we will initially populate the set.
*/
public DSet (Iterable<E> source)
public DSet (Iterable<? extends E> source)
{
for (E e : source) {
add(e);
@@ -120,7 +120,7 @@ public class DSet<E extends DSet.Entry>
*
* @param source an iterator from which we will initially populate the set.
*/
public DSet (Iterator<E> source)
public DSet (Iterator<? extends E> source)
{
while (source.hasNext()) {
add(source.next());