Package com.bhoffpauir.blisp.lib
Class Utils
java.lang.Object
com.bhoffpauir.blisp.lib.Utils
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanhasUnmatchedParentheses(String input) Detect if theinputstring has unbalanced parentheses.static voidopenUrlInBrowser(String urlString) Overload foropenUrlInBrowserwith aStringparameter.static voidopenUrlInBrowser(URL url) Utility method to open a URL in the default browser.static Stringquote(String unquoted, Utils.Quote quote) static Stringunquote(String quoted, Utils.Quote quote)
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
quote
- Parameters:
unquoted-- Returns:
unquotedsurrounded by double quotes.
-
unquote
- Parameters:
quoted-- Returns:
quotedwith double quotes removed.
-
hasUnmatchedParentheses
Detect if theinputstring has unbalanced parentheses.- Parameters:
input- The input string.- Returns:
- True if the string has unbalanced parentheses, false otherwise.
-
openUrlInBrowser
Utility method to open a URL in the default browser.- Parameters:
url- The URL to browse.
-
openUrlInBrowser
Overload foropenUrlInBrowserwith aStringparameter.- Parameters:
urlString- The URL to browse.
-