Klasse TextUtils

java.lang.Object
ch.framedev.simplejavautils.TextUtils

public class TextUtils extends Object
This Plugin was Created by FrameDev Package : ch.framedev.simplejavautils ClassName TextUtils Date: 03.05.21 Project: JavaUtils Copyrighted by FrameDev
  • Konstruktordetails

    • TextUtils

      public TextUtils()
  • Methodendetails

    • replaceAndWithParagraph

      public String replaceAndWithParagraph(String text)
    • replaceObject

      public String replaceObject(String text, String format, Object data)
    • arrayToList

      public <T> List<T> arrayToList(T[] array)
    • stringListToArray

      public String[] stringListToArray(List<String> list)
    • intListToArray

      public Integer[] intListToArray(List<Integer> list)
    • doubleListToArray

      public Double[] doubleListToArray(List<Double> list)
    • floatListToArray

      public Float[] floatListToArray(List<Float> list)
    • shortListToArray

      public Short[] shortListToArray(List<Short> list)
    • longListToArray

      public Long[] longListToArray(List<Long> list)
    • byteListToArray

      public Byte[] byteListToArray(List<Byte> list)
    • objectListToArray

      public Object[] objectListToArray(List<Object> list)
    • listToArray

      public <T> T[] listToArray(List<T> list, Class<T> clazz)
      Converts a list to an array. Suppressed (unchecked)
      Typparameter:
      T - the type of elements in the list
      Parameter:
      list - the list to be converted
      Gibt zurück:
      an array containing the elements of the list
    • doubleToInt

      public int doubleToInt(double d)
    • longToInt

      public int longToInt(long number)
    • floatToInt

      public int floatToInt(float number)
    • centerTextWithSymbol

      public String centerTextWithSymbol(String text, char symbol, int length)
    • printBox

      public void printBox(String... text)
    • topBottom

      public String topBottom(int length)
    • topBottomVoid

      public void topBottomVoid(int length)
    • generateBox

      public String generateBox(String... text)
    • milesToMeters

      public double milesToMeters(double miles)
    • metersToMiles

      public double metersToMiles(double meters)
    • isInteger

      public boolean isInteger(String number)
    • isDouble

      public boolean isDouble(String number)
    • isShort

      public boolean isShort(String number)
      Checks if the given string can be parsed into a short integer.
      Parameter:
      number - The string to be parsed.
      Gibt zurück:
      True if the string can be parsed into a short integer, false otherwise.
    • isFloat

      public boolean isFloat(String number)
    • isLong

      public boolean isLong(String number)
    • isBoolean

      public boolean isBoolean(String bool)
    • isByte

      public boolean isByte(String number)
    • stringToInteger

      public int stringToInteger(String number)
    • byteToInteger

      public int byteToInteger(byte number)
    • shortToInteger

      public int shortToInteger(short number)
    • longToInteger

      public int longToInteger(long number)
    • doubleToInteger

      public int doubleToInteger(double number)
    • floatToInteger

      public int floatToInteger(float number)
    • stringToDouble

      public double stringToDouble(String number)
    • byteToDouble

      public double byteToDouble(byte number)
    • shortToDouble

      public double shortToDouble(short number)
    • intToDouble

      public double intToDouble(int number)
    • longToDouble

      public double longToDouble(long number)
    • floatToDouble

      public double floatToDouble(float number)
    • stringToShort

      public short stringToShort(String number)
    • byteToShort

      public short byteToShort(byte number)
    • intToShort

      public short intToShort(int number)
    • longToShort

      public short longToShort(long number)
    • floatToShort

      public short floatToShort(float number)
    • doubleToShort

      public short doubleToShort(double number)
    • stringToFloat

      public float stringToFloat(String number)
    • byteToFloat

      public float byteToFloat(byte number)
    • shortToFloat

      public float shortToFloat(short number)
    • intToFloat

      public float intToFloat(int number)
    • longToFloat

      public float longToFloat(long number)
    • doubleToFloat

      public float doubleToFloat(double number)
    • stringToLong

      public long stringToLong(String number)
    • byteToLong

      public long byteToLong(byte number)
    • shortToLong

      public long shortToLong(short number)
    • intToLong

      public long intToLong(int number)
    • doubleToLong

      public long doubleToLong(double number)
    • floatToLong

      public long floatToLong(float number)
    • byteToString

      public String byteToString(byte number)
    • shortToString

      public String shortToString(short number)
    • intToString

      public String intToString(int number)
    • longToString

      public String longToString(long number)
    • floatToString

      public String floatToString(float number)
    • doubleToString

      public String doubleToString(double number)
    • objectToString

      public String objectToString(Object object)
    • objectToShort

      public short objectToShort(Object object)
    • objectToInt

      public int objectToInt(Object object)
    • objectToLong

      public long objectToLong(Object object)
    • objectToFloat

      public float objectToFloat(Object object)
    • objectToDouble

      public double objectToDouble(Object object)
    • objectToBoolean

      public boolean objectToBoolean(Object object)
    • stringToBoolean

      public boolean stringToBoolean(String bool)