Class Utils


  • public class Utils
    extends Object
    Janaka Nawagamuwa created on 18/10/2021
    • Constructor Detail

      • Utils

        public Utils()
    • Method Detail

      • deepCopyJAXB

        public static <T> T deepCopyJAXB​(T object,
                                         Class<T> clazz)
        This utility function created to clone the result model. Because, the generated models are not extending clonable interface and it is not possible to use object.clone() to clone the result.
        Type Parameters:
        T -
        Parameters:
        object -
        clazz -
        Returns:
      • retainMatchIDs

        public static void retainMatchIDs​(MatchmakingResult mmResult,
                                          List<String> retainingIDs)
        Utility function to remove the match IDs that has not been mentioned in the retainingIDs list
        Parameters:
        mmResult -
        retainingIDs -