18 lines
205 B
Java
18 lines
205 B
Java
|
package abstraction;
|
||
|
|
||
|
import java.util.Set;
|
||
|
import java.util.stream.Stream;
|
||
|
|
||
|
public interface CustomSet<T> {
|
||
|
|
||
|
|
||
|
|
||
|
Stream<T> stream();
|
||
|
|
||
|
boolean add(T value);
|
||
|
|
||
|
boolean remove(T value);
|
||
|
|
||
|
Set<T> getSet();
|
||
|
}
|