Klasse TextUtils
java.lang.Object
ch.framedev.simplejavautils.TextUtils
This Plugin was Created by FrameDev
Package : ch.framedev.simplejavautils
ClassName TextUtils
Date: 03.05.21
Project: JavaUtils
Copyrighted by FrameDev
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibung<T> List<T> arrayToList(T[] array) Byte[]byteListToArray(List<Byte> list) doublebyteToDouble(byte number) floatbyteToFloat(byte number) intbyteToInteger(byte number) longbyteToLong(byte number) shortbyteToShort(byte number) byteToString(byte number) centerTextWithSymbol(String text, char symbol, int length) Double[]doubleListToArray(List<Double> list) floatdoubleToFloat(double number) intdoubleToInt(double d) intdoubleToInteger(double number) longdoubleToLong(double number) shortdoubleToShort(double number) doubleToString(double number) Float[]floatListToArray(List<Float> list) doublefloatToDouble(float number) intfloatToInt(float number) intfloatToInteger(float number) longfloatToLong(float number) shortfloatToShort(float number) floatToString(float number) generateBox(String... text) Integer[]intListToArray(List<Integer> list) doubleintToDouble(int number) floatintToFloat(int number) longintToLong(int number) shortintToShort(int number) intToString(int number) booleanbooleanbooleanbooleanbooleanbooleanbooleanChecks if the given string can be parsed into a short integer.<T> T[]listToArray(List<T> list, Class<T> clazz) Converts a list to an array.Long[]longListToArray(List<Long> list) doublelongToDouble(long number) floatlongToFloat(long number) intlongToInt(long number) intlongToInteger(long number) shortlongToShort(long number) longToString(long number) doublemetersToMiles(double meters) doublemilesToMeters(double miles) Object[]objectListToArray(List<Object> list) booleanobjectToBoolean(Object object) doubleobjectToDouble(Object object) floatobjectToFloat(Object object) intobjectToInt(Object object) longobjectToLong(Object object) shortobjectToShort(Object object) objectToString(Object object) voidreplaceObject(String text, String format, Object data) Short[]shortListToArray(List<Short> list) doubleshortToDouble(short number) floatshortToFloat(short number) intshortToInteger(short number) longshortToLong(short number) shortToString(short number) String[]stringListToArray(List<String> list) booleanstringToBoolean(String bool) doublestringToDouble(String number) floatstringToFloat(String number) intstringToInteger(String number) longstringToLong(String number) shortstringToShort(String number) topBottom(int length) voidtopBottomVoid(int length)
-
Konstruktordetails
-
TextUtils
public TextUtils()
-
-
Methodendetails
-
replaceAndWithParagraph
-
replaceObject
-
arrayToList
-
stringListToArray
-
intListToArray
-
doubleListToArray
-
floatListToArray
-
shortListToArray
-
longListToArray
-
byteListToArray
-
objectListToArray
-
listToArray
-
doubleToInt
public int doubleToInt(double d) -
longToInt
public int longToInt(long number) -
floatToInt
public int floatToInt(float number) -
centerTextWithSymbol
-
printBox
-
topBottom
-
topBottomVoid
public void topBottomVoid(int length) -
generateBox
-
milesToMeters
public double milesToMeters(double miles) -
metersToMiles
public double metersToMiles(double meters) -
isInteger
-
isDouble
-
isShort
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
-
isLong
-
isBoolean
-
isByte
-
stringToInteger
-
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
-
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
-
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
-
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
-
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
-
shortToString
-
intToString
-
longToString
-
floatToString
-
doubleToString
-
objectToString
-
objectToShort
-
objectToInt
-
objectToLong
-
objectToFloat
-
objectToDouble
-
objectToBoolean
-
stringToBoolean
-