Class DictionaryBreakEngine.DequeI

  • All Implemented Interfaces:
    java.lang.Cloneable
    Enclosing class:
    DictionaryBreakEngine

    public static class DictionaryBreakEngine.DequeI
    extends java.lang.Object
    implements java.lang.Cloneable
    A deque-like structure holding raw ints. Partial, limited implementation, only what is needed by the dictionary implementation. For internal use only.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int[] data  
      private int firstIdx  
      private int lastIdx  
    • Constructor Summary

      Constructors 
      Constructor Description
      DequeI()  
    • Field Detail

      • data

        private int[] data
      • lastIdx

        private int lastIdx
      • firstIdx

        private int firstIdx
    • Constructor Detail

      • DequeI

        public DequeI()
    • Method Detail

      • clone

        public java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException
        Overrides:
        clone in class java.lang.Object
        Throws:
        java.lang.CloneNotSupportedException
      • size

        public int size()
      • isEmpty

        public boolean isEmpty()
      • grow

        private void grow()
      • offer

        public void offer​(int v)
      • push

        public void push​(int v)
      • pop

        public int pop()
      • peek

        public int peek()
      • peekLast

        int peekLast()
      • pollLast

        int pollLast()
      • contains

        boolean contains​(int v)
      • elementAt

        public int elementAt​(int i)
      • removeAllElements

        public void removeAllElements()