com.monica.javacom.ciphering
Class StringLista

java.lang.Object
  |
  +--com.monica.javacom.ciphering.StringLista

public class StringLista
extends java.lang.Object

Implements a List the members of which are Strings. This is a very simple but clear implementation of a FIFO. It is used by both AES and RSA algorithms.


Constructor Summary
StringLista()
          Constructs a new StringLista object.
 
Method Summary
 void add(java.lang.String ujelem)
          Adds a new element to the end of the list.
 java.lang.String getFirst()
          Returns and removes the first element of the list.
 boolean isEmpty()
          Returns wheather the list is empty.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringLista

public StringLista()
Constructs a new StringLista object.
Method Detail

add

public void add(java.lang.String ujelem)
Adds a new element to the end of the list.

getFirst

public java.lang.String getFirst()
Returns and removes the first element of the list.
Returns:
the first (oldest) element of the list if the list was not empty, null if the list was empty

isEmpty

public boolean isEmpty()
Returns wheather the list is empty.
Returns:
true if the list is empty, false otherwise