FCollection: can't inherit from Set anymore because the interfaces might colide

This commit is contained in:
Hanmac
2017-06-10 13:24:52 +00:00
parent a844577e1a
commit a39ac85b15
4 changed files with 9 additions and 5 deletions

View File

@@ -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.