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 booleanGiven an array ofSymbolvalues search for a specific value and returntrueif the value is found in the array.static booleanGiven an array ofSymbolvalues search for a specific value and returntrueif the value is found in the array.static Symbol[]getSymbols(String[] stringValues)
-
Method Details
-
getSymbols
-
contains
Given an array ofSymbolvalues search for a specific value and returntrueif 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 ofSymbolvalues search for a specific value and returntrueif 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.
-