Class ContextManager.CtxStack

  • Enclosing class:
    ContextManager

    private static final class ContextManager.CtxStack
    extends java.lang.Object
    The CtxStack implement a stack on top of an ArrayList (to avoid the inherent overhead associated with java.util.Stack which is built on top of java.util.Vector, which is fully synchronized).
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.ArrayList<Context> stack_
      Internal list with all the elements of the stack.
      private Context top_  
      private java.util.List<Context> view_
      Read-only view of the internal list.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private CtxStack()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) java.util.List<Context> getUnmodifiableList()  
      (package private) boolean isEmpty()  
      (package private) void pop()  
      (package private) void push​(Context context)  
      (package private) void remove​(Context context)  
      (package private) Context top()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • stack_

        private final java.util.ArrayList<Context> stack_
        Internal list with all the elements of the stack.
      • view_

        private final java.util.List<Context> view_
        Read-only view of the internal list.
    • Constructor Detail

      • CtxStack

        private CtxStack()
    • Method Detail

      • push

        void push​(Context context)
      • pop

        void pop()
      • remove

        void remove​(Context context)
      • isEmpty

        boolean isEmpty()
      • getUnmodifiableList

        java.util.List<Context> getUnmodifiableList()