package org.sonar.java.collections;
import java.util.function.Consumer;
import java.util.function.Predicate;
public interface PStack<E> {
PStack<E> push(E e);
<BUG>E peek();
PStack<E> pop();</BUG>
boolean isEmpty();
void forEach(Consumer<E> action);
<BUG>boolean anyMatch(Predicate<E> predicate);
@Override</BUG>
String toString();

package org.sonar.java.collections;
import java.util.function.Consumer;
import java.util.function.Predicate;
public interface PStack<E> {
PStack<E> push(E e);
E peek();
E peek(int i);
PStack<E> pop();
boolean isEmpty();
void forEach(Consumer<E> action);
boolean anyMatch(Predicate<E> predicate);
int size();
@Override
String toString();
