jpov
Class UniqString

java.lang.Object
  extended byjpov.UniqString

public class UniqString
extends java.lang.Object

This class provides facilities to manage strings that appears during the view phases. Strings are strored into an hashtable in manner to have an uniq instance even if it appears many times mainly in the JPO file.

Author:
L. Burdy

Constructor Summary
UniqString()
           
 
Method Summary
static java.lang.String getUniqString(java.lang.String s)
          Returns the instance of a string stored in the table.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UniqString

public UniqString()
Method Detail

getUniqString

public static java.lang.String getUniqString(java.lang.String s)
Returns the instance of a string stored in the table.

Parameters:
s - The searched string
Returns:
s if it is the first occurence of this string or the already stored instance if not.