psdi.webclient.system.controller

Class NavigationHistoryStack

  • java.lang.Object
    • java.util.AbstractCollection
      • java.util.AbstractList
        • java.util.Vector
          • java.util.Stack
            • psdi.webclient.system.controller.NavigationHistoryStack
  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, java.util.RandomAccess


    public class NavigationHistoryStack
    extends java.util.Stack
    This Stack, like a normal stack, allows for pushing and popping of items, but it also allows you to pop from a given item. NavigationObjects are usually created during a MoveTo operation, to track the movements of a user within the Assets application. The Navigation History can be presented to the user, to allow them to Jump back to a particular Asset.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.util.Vector

        capacityIncrement, elementCount, elementData
      • Fields inherited from class java.util.AbstractList

        modCount
    • Constructor Summary

      Constructors 
      Constructor and Description
      NavigationHistoryStack()
      Creats a NavigationHistoryManager
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      NavigationHistory popHistoryFrom(long navId)
      Given a NavigationHistory's id, pop it off the history stack and all other NavigationHistory afterwards.
      NavigationHistory push(NavigationHistory object)
      Pushes a new item on the stack, duplicate items can exist but are unique on the navigation id.
      • Methods inherited from class java.util.Stack

        empty, peek, pop, search
      • Methods inherited from class java.util.Vector

        add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, forEach, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeIf, removeRange, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, toString, trimToSize
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, stream
    • Constructor Detail

      • NavigationHistoryStack

        public NavigationHistoryStack()
        Creats a NavigationHistoryManager
    • Method Detail

      • popHistoryFrom

        public NavigationHistory popHistoryFrom(long navId)
        Given a NavigationHistory's id, pop it off the history stack and all other NavigationHistory afterwards. For example, if you have 5 items on the stack [1,2,3,4,5] and you pop item 3, then it will pop [3,4,5] and the new history stack will now contain [1,2].
        Parameters:
        id - of the NavigationHistory to begin popping off the history stack
      • push

        public NavigationHistory push(NavigationHistory object)
        Pushes a new item on the stack, duplicate items can exist but are unique on the navigation id.
        Overrides:
        push in class java.util.Stack
        Returns:
        the object that is passed in, (ie, like normal push method)