Code example for Stack

Methods: empty, pop

0
 
        public static void pop () 
        { 
            Stack s = (Stack)local.get();
 
            if ((s == null) || s.empty())
                return; 
 
            s.pop();
        } 
 
        public static JAASRole peek () 
        { 
            Stack s = (Stack)local.get();
             
            if ((s == null) || (s.empty()))
                return null; 
             
             
            return (JAASRole)s.peek();
        }