Class Symbols

java.lang.Object
org.apache.qpid.protonj2.types.Symbols

public final class Symbols extends Object
This class provides a set of APIs for interacting with sets of Symbol values.
  • Method Details

    • getSymbols

      public static Symbol[] getSymbols(String[] stringValues)
      Look up a set of Symbol instances that matches the given String array names of the Symbol values and return them as a new Symbol array.
      Parameters:
      stringValues - The String array version of the Symbol values.
      Returns:
      a Symbol array that matches the given String array values.
    • contains

      public static boolean contains(Symbol[] symbols, String value)
      Given an array of Symbol values search for a specific value and return true 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

      public static boolean contains(Symbol[] symbols, Symbol value)
      Given an array of Symbol values search for a specific value and return true 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.