br.eti.kinoshita.tap4j.util
Class Util

java.lang.Object
  extended by br.eti.kinoshita.tap4j.util.Util

public class Util
extends Object

Utility Class.

Since:
1.0
Author:
Bruno P. Kinoshita - http://www.kinoshita.eti.br

Constructor Summary
Util()
           
 
Method Summary
static void appendIfNotNull(StringBuffer sb, String text)
          Appends a text to a given StringBuffer if the text is not null.
static void appendIfNotNull(StringBuffer sb, String prefix, Object object, String suffix)
          Appends a text to the StringBuffer with a prefix and suffix.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

public Util()
Method Detail

appendIfNotNull

public static void appendIfNotNull(StringBuffer sb,
                                   String prefix,
                                   Object object,
                                   String suffix)
Appends a text to the StringBuffer with a prefix and suffix.

Parameters:
sb -
prefix -
object -
suffix -

appendIfNotNull

public static void appendIfNotNull(StringBuffer sb,
                                   String text)
Appends a text to a given StringBuffer if the text is not null.

Parameters:
sb - StringBuffer object.
text - String text to be appended.


Copyright © 2010. All Rights Reserved.