de.esprit.common.util

## Class StringStack

- java.lang.Object
- - de.esprit.common.util.StringStack

-     public class StringStack
      extends java.lang.Object

  This class implements a StringStack with a limited size. You can add more and more strings but only `size` of them will be remembered in the stack. Use `toString()` for getting the content of the stack.
  Author:
    Rainer Buesch

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `StringStack(int size)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `add(java.lang.String s)`
    `void` | `clear()`
    `java.lang.String` | `get(int i)`
    `int` | `getMaxSize()`
    `int` | `getSize()`
    `static void` | `main(java.lang.String[] args)` Just for testing only
    `java.lang.String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### StringStack

          public StringStack(int size)

  - ### Method Detail

    - #### toString

          public java.lang.String toString()

      Overrides:
        `toString` in class `java.lang.Object`

    - #### add

          public void add(java.lang.String s)

    - #### get

          public java.lang.String get(int i)

    - #### clear

          public void clear()

    - #### getSize

          public int getSize()

    - #### getMaxSize

          public int getMaxSize()

    - #### main

          public static void main(java.lang.String[] args)

      Just for testing only

Copyright © 2014 EsprIT-Systems. All Rights Reserved.