/* ============================================================================ * File: RecursionStack.java * ---------------------------------------------------------------------------- * * This file is part of the Microsoft Supplemental UI Library for Visual J# .NET * Code Samples. * * Copyright (C) 2003 Microsoft Corporation. All rights reserved. * * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, * WHETHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. * ============================================================================ */ package RecursionDemo; /** * This interface is used by RecursiveFunction to push/pop itself from the call stack. */ public interface RecursionStack { /** * Push this recursive function call into the call stack. The 'input' is the * input value passed to the RecursiveFunction. */ public void push(int input); /** * Pop this recursive function call out of the call stack. The 'result' is the * resultant value that will be returned by the RecursiveFunction. */ public void pop(int result); }