Support peek

This commit is contained in:
Andrea Cavalli 2022-02-09 00:49:32 +01:00
parent 93c35b2b30
commit 707005500f
1 changed files with 5 additions and 0 deletions

View File

@ -26,6 +26,11 @@ public class FastUtilStackWrapper<T> implements Stack<T>, Collection<T> {
return this.stack.pop();
}
@Override
public T peek(int n) {
return this.stack.peek(n);
}
@Override
public int size() {
return collection.size();