Class SafetyLine.SafetyPile

  • Enclosing class:
    SafetyLine

    public class SafetyLine.SafetyPile
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      SafetyPile​(int safetyPileIndex)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void moveForwardTo​(int safetyPilePosition)  
      • Methods inherited from class java.lang.Object

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

      • SafetyPile

        public SafetyPile​(int safetyPileIndex)
    • Method Detail

      • moveForwardTo

        public void moveForwardTo​(int safetyPilePosition)
        Parameters:
        safetyPilePosition - the index of the first element that cannot be evicted. in other words, elements whose index are less than the safetyPilePosition can be evicted.