Klasse StringToolUnit

java.lang.Object
ch.nolix.core.commontypetool.stringtool.StringToolUnit
Alle implementierten Schnittstellen:
IStringTool

public final class StringToolUnit extends Object implements IStringTool
The StringToolUnit provides methods to handle Strings.
Version:
2016-01-01
Autor:
Silvan Wyss
  • Konstruktordetails

    • StringToolUnit

      public StringToolUnit()
  • Methodendetails

    • createStringWithoutLastCharacters

      public String createStringWithoutLastCharacters(String string, int n)
      Angegeben von:
      createStringWithoutLastCharacters in Schnittstelle IStringTool
      Parameter:
      string -
      n -
      Gibt zurück:
      a new String that is like the given string without the last n characters.
    • createTabs

      public String createTabs(int tabCount)
      Angegeben von:
      createTabs in Schnittstelle IStringTool
      Parameter:
      tabCount -
      Gibt zurück:
      a new String consisting of as many tabulators as the given tabCount says.
    • getInBraces

      public String getInBraces(Object object)
      Angegeben von:
      getInBraces in Schnittstelle IStringTool
      Parameter:
      object -
      Gibt zurück:
      the String representation of the given object in braces.
    • getInParentheses

      public String getInParentheses(Object object, Object... objects)
      Angegeben von:
      getInParentheses in Schnittstelle IStringTool
      Parameter:
      object -
      objects -
      Gibt zurück:
      the String representation of the given object and objects in parentheses.
    • getInSingleQuotes

      public String getInSingleQuotes(Object object)
      Angegeben von:
      getInSingleQuotes in Schnittstelle IStringTool
      Parameter:
      object -
      Gibt zurück:
      the String representation of the given object in single quotes.
    • toBoolean

      public boolean toBoolean(String string)
      Angegeben von:
      toBoolean in Schnittstelle IStringTool
      Parameter:
      string -
      Gibt zurück:
      the boolean the given string represents.
    • toDouble

      public double toDouble(String string)
      Angegeben von:
      toDouble in Schnittstelle IStringTool
      Parameter:
      string -
      Gibt zurück:
      the double the given string represents.
    • toPascalCase

      public String toPascalCase(String string)
      Angegeben von:
      toPascalCase in Schnittstelle IStringTool
      Parameter:
      string -
      Gibt zurück:
      a new String in pascal case for the given string.
    • toCapitalSnakeCase

      public String toCapitalSnakeCase(String string)
      Angegeben von:
      toCapitalSnakeCase in Schnittstelle IStringTool
      Parameter:
      string -
      Gibt zurück:
      a new String in capital snake case for the given string.