impl: cll find item
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
|
||||
package appointmentplanner.customlist.api;
|
||||
|
||||
import java.util.function.Predicate;
|
||||
|
||||
public interface CustomLinkedList<T> extends Iterable<T> {
|
||||
|
||||
void add(T item);
|
||||
@@ -18,4 +20,6 @@ public interface CustomLinkedList<T> extends Iterable<T> {
|
||||
boolean contains(T item);
|
||||
|
||||
int size();
|
||||
|
||||
CustomLinkedList<T> find(Predicate<T> filter);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user