public final class TextUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
formatApproaches(java.lang.String[] approaches)
Deprecated.
use FormatUtils.formatApproaches(List)
|
static java.lang.String |
formatBearing(java.util.List<java.lang.Double[]> bearings)
Deprecated.
use FormatUtils.formatBearing(List)
|
static java.lang.String |
formatCoordinate(double coordinate)
Useful to remove any trailing zeros and prevent a coordinate being over 7 significant figures.
|
static java.lang.String |
formatCoordinate(double coordinate,
int precision)
Allows the specific adjusting of a coordinates precision.
|
static java.lang.String |
formatDistributions(java.util.List<java.lang.Integer[]> distributions)
Deprecated.
use FormatUtils.formatDistributions(List)
|
static java.lang.String |
formatRadiuses(double[] radiuses)
Deprecated.
use FormatUtils.formatRadiuses(List)
|
static java.lang.String |
formatWaypointNames(java.lang.String[] waypointNames)
Deprecated.
use FormatUtils.formatWaypointNames(List)
|
static boolean |
isEmpty(java.lang.CharSequence str)
Returns true if the string is null or 0-length.
|
static java.lang.String |
join(java.lang.CharSequence delimiter,
java.lang.Object[] tokens)
Returns a string containing the tokens joined by delimiters.
|
public static boolean isEmpty(java.lang.CharSequence str)
str - the string to be examinedpublic static java.lang.String join(java.lang.CharSequence delimiter,
java.lang.Object[] tokens)
delimiter - the delimeter on which to split.tokens - An array objects to be joined. Strings will be formed from the objects by
calling object.toString().Stringpublic static java.lang.String formatCoordinate(double coordinate)
coordinate - a double value representing a coordinate.public static java.lang.String formatCoordinate(double coordinate,
int precision)
coordinate - a double value representing a coordinate.precision - an integer value you'd like the precision to be at.@Deprecated public static java.lang.String formatRadiuses(double[] radiuses)
radiuses - a double array which represents the radius values@Deprecated public static java.lang.String formatBearing(java.util.List<java.lang.Double[]> bearings)
bearings - a List of doubles representing bearing values@Deprecated public static java.lang.String formatDistributions(java.util.List<java.lang.Integer[]> distributions)
distributions - the list of integer arrays representing the distribution@Deprecated public static java.lang.String formatApproaches(java.lang.String[] approaches)
approaches - a string representing approaches to each coordinate.@Deprecated public static java.lang.String formatWaypointNames(java.lang.String[] waypointNames)
waypointNames - a string representing approaches to each coordinate.