hades.models.mips.tools
Class StringTools

java.lang.Object
  extended byhades.models.mips.tools.StringTools

public class StringTools
extends java.lang.Object

Some basic String operations useful for many purposes


Constructor Summary
StringTools()
           
 
Method Summary
static java.lang.String blowStringLeft(java.lang.String str, char fill, int count)
          Append leading fill-characters to a string until the length of the string reaches count
static java.lang.String blowStringRight(java.lang.String str, char fill, int count)
          See blowStringLeft, but fill will be added at the right side
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringTools

public StringTools()
Method Detail

blowStringLeft

public static final java.lang.String blowStringLeft(java.lang.String str,
                                                    char fill,
                                                    int count)
Append leading fill-characters to a string until the length of the string reaches count


blowStringRight

public static final java.lang.String blowStringRight(java.lang.String str,
                                                     char fill,
                                                     int count)
See blowStringLeft, but fill will be added at the right side