Class AvPairs


  • public final class AvPairs
    extends Object
    Author:
    mbechler
    • Method Detail

      • contains

        public static boolean contains​(List<AvPair> pairs,
                                       int type)
        Parameters:
        pairs -
        type -
        Returns:
        whether the list contains a pair of that type
      • get

        public static AvPair get​(List<AvPair> pairs,
                                 int type)
        Parameters:
        pairs -
        type -
        Returns:
        first occurance of the given type
      • remove

        public static void remove​(List<AvPair> pairs,
                                  int type)
        Remove all occurances of the given type
        Parameters:
        pairs -
        type -
      • replace

        public static void replace​(List<AvPair> pairs,
                                   AvPair rep)
        Replace all occurances of the given type
        Parameters:
        pairs -
        rep -
      • encode

        public static byte[] encode​(List<AvPair> pairs)
        Parameters:
        pairs -
        Returns:
        encoded avpairs