Class Iterables.Lifo

  • Enclosing class:
    Iterables

    private class Iterables.Lifo
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int maxSize  
      private java.util.LinkedList<java.lang.Object> stack  
    • Constructor Summary

      Constructors 
      Constructor Description
      Lifo​(int maxSize)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) void add​(java.lang.Object element)  
      (package private) boolean matchesExactly​(java.lang.Object[] sequence)  
      • Methods inherited from class java.lang.Object

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

      • maxSize

        private final int maxSize
      • stack

        private final java.util.LinkedList<java.lang.Object> stack
    • Constructor Detail

      • Lifo

        Lifo​(int maxSize)
    • Method Detail

      • add

        void add​(java.lang.Object element)
      • matchesExactly

        boolean matchesExactly​(java.lang.Object[] sequence)