com.supermap.data.mapGrid
Class StringUtils
- java.lang.Object
-
- com.supermap.data.mapGrid.StringUtils
-
public class StringUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description StringUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static java.lang.StringgetUniqueName(java.lang.String newName, java.util.List<java.lang.String> existNames)Get available namesstatic java.lang.StringgetUniqueNameIgnoreCase(java.lang.String newName, java.util.List<java.lang.String> existNames)Gets the available name, ignoring casestatic booleanisDecimal(java.lang.String orginal)whether it is stringstatic booleanisNegativeInteger(java.lang.String orginal)Check whether it is a negative integerstatic booleanisNullOrEmpty(java.lang.String str)Determines whether the string is empty or zero-lengthstatic booleanisNumber(java.lang.String orginal)whether it is a numberstatic booleanisPositiveInteger(java.lang.String orginal)Check whether it is a positive integerstatic booleanwildcardMatch(java.lang.String original, java.lang.String wildcardPattern)Matches the wildcard
-
-
-
Method Detail
-
isNullOrEmpty
public static boolean isNullOrEmpty(java.lang.String str)
Determines whether the string is empty or zero-length- Parameters:
str- string- Returns:
- is empty?
-
isNumber
public static boolean isNumber(java.lang.String orginal)
whether it is a number
-
isDecimal
public static boolean isDecimal(java.lang.String orginal)
whether it is string
-
isPositiveInteger
public static boolean isPositiveInteger(java.lang.String orginal)
Check whether it is a positive integer
-
isNegativeInteger
public static boolean isNegativeInteger(java.lang.String orginal)
Check whether it is a negative integer
-
getUniqueName
public static java.lang.String getUniqueName(java.lang.String newName, java.util.List<java.lang.String> existNames)Get available names- Parameters:
newName- new nameexistNames- An existing name- Returns:
- The name of the available
-
getUniqueNameIgnoreCase
public static java.lang.String getUniqueNameIgnoreCase(java.lang.String newName, java.util.List<java.lang.String> existNames)Gets the available name, ignoring case- Parameters:
newName- new nameexistNames- An existing name- Returns:
- The name of the available
-
wildcardMatch
public static boolean wildcardMatch(java.lang.String original, java.lang.String wildcardPattern)Matches the wildcard- Parameters:
original- Specifies the string to be matchedwildcardPattern- Matching pattern- Returns:
-
-