Class LocationUtils


  • public class LocationUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      LocationUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean doesLocationsMatch​(java.lang.String location1, java.lang.String location2)  
      static java.lang.String getEffectiveLocationName​(java.lang.String locationName)
      Returns the effective location name, using the default value if the given location name is null or an empty string.
      static boolean isDefaultLocationName​(java.lang.String locationName)
      Returns true if the given location name is null, an empty string, or the system default.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • DEFAULT_LOCATION_NAME

        public static final java.lang.String DEFAULT_LOCATION_NAME
        See Also:
        Constant Field Values
    • Constructor Detail

      • LocationUtils

        public LocationUtils()
    • Method Detail

      • getEffectiveLocationName

        public static java.lang.String getEffectiveLocationName​(java.lang.String locationName)
        Returns the effective location name, using the default value if the given location name is null or an empty string.
        Parameters:
        locationName -
        Returns:
        the effective location name
      • isDefaultLocationName

        public static boolean isDefaultLocationName​(java.lang.String locationName)
        Returns true if the given location name is null, an empty string, or the system default.
        Parameters:
        locationName -
        Returns:
      • doesLocationsMatch

        public static boolean doesLocationsMatch​(java.lang.String location1,
                                                 java.lang.String location2)