mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
FCollection: can't inherit from Set anymore because the interfaces might colide
This commit is contained in:
@@ -28,7 +28,7 @@ import java.util.Set;
|
||||
* @param <T> the type of the elements this collection contains.
|
||||
* @see FCollectionView
|
||||
*/
|
||||
public class FCollection<T> implements List<T>, Set<T>, FCollectionView<T>, Cloneable, Serializable {
|
||||
public class FCollection<T> implements List<T>, /*Set<T>,*/ FCollectionView<T>, Cloneable, Serializable {
|
||||
private static final long serialVersionUID = -1664555336364294106L;
|
||||
|
||||
private static final FCollection<?> EMPTY = new EmptyFCollection<Object>();
|
||||
@@ -200,6 +200,10 @@ public class FCollection<T> implements List<T>, Set<T>, FCollectionView<T>, Clon
|
||||
public boolean isEmpty() {
|
||||
return set.isEmpty();
|
||||
}
|
||||
|
||||
public Set<T> asSet() {
|
||||
return set;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check whether this collection contains a particular object.
|
||||
|
||||
Reference in New Issue
Block a user