Package org.apache.qpid.protonj2.types
Class Symbols
java.lang.Object
org.apache.qpid.protonj2.types.Symbols
This class provides a set of APIs for interacting with sets of Symbol values.
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Given an array ofSymbol
values search for a specific value and returntrue
if the value is found in the array.static boolean
Given an array ofSymbol
values search for a specific value and returntrue
if the value is found in the array.static Symbol[]
getSymbols
(String[] stringValues)
-
Method Details
-
getSymbols
-
contains
Given an array ofSymbol
values search for a specific value and returntrue
if the value is found in the array.- Parameters:
symbols
- The array of symbols that should be searched (can be null or empty).value
- The value to search for in the provided array (cannot be null).- Returns:
- true if the value is found in the symbol array.
-
contains
Given an array ofSymbol
values search for a specific value and returntrue
if the value is found in the array.- Parameters:
symbols
- The array of symbols that should be searched (can be null or empty).value
- The value to search for in the provided array (cannot be null).- Returns:
- true if the value is found in the symbol array.
-