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 boolean
hasUnmatchedParentheses
(String input) Detect if theinput
string has unbalanced parentheses.static void
openUrlInBrowser
(String urlString) Overload foropenUrlInBrowser
with aString
parameter.static void
openUrlInBrowser
(URL url) Utility method to open a URL in the default browser.static String
quote
(String unquoted, Utils.Quote quote) static String
unquote
(String quoted, Utils.Quote quote)
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
quote
- Parameters:
unquoted
-- Returns:
unquoted
surrounded by double quotes.
-
unquote
- Parameters:
quoted
-- Returns:
quoted
with double quotes removed.
-
hasUnmatchedParentheses
Detect if theinput
string 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 foropenUrlInBrowser
with aString
parameter.- Parameters:
urlString
- The URL to browse.
-