Template:Java Deque methods