List of utility methods to do Stack Peek
Object | peek(Stack peek Object result = null; Object value = null; while (!((value = stack.peek()).getClass().isAssignableFrom(type))) { stack.pop(); if (value != null && value.getClass().isAssignableFrom(type)) result = value; return result; ... |
E | peekOrNull(final Stack extends E> stack) peek Or Null return !isEmpty(stack) ? stack.peek() : null;
|