Class Logging


  • public final class Logging
    extends Object
    A set of utilities for the logging subsystem.
    Since:
    7.1.0
    Author:
    James R. Perkins
    • Method Detail

      • requiresRestart

        public static boolean requiresRestart​(Set<AttributeAccess.Flag> flags)
        Checks to see within the flags if a restart of any kind is required.
        Parameters:
        flags - the flags to check
        Returns:
        true if a restart is required, otherwise false
      • requiresReload

        public static boolean requiresReload​(Set<AttributeAccess.Flag> flags)
        Checks to see within the flags if a reload, i.e. not a full restart, is required.
        Parameters:
        flags - the flags to check
        Returns:
        true if a reload is required, otherwise false
      • join

        public static <T> T[] join​(T[] base,
                                   T... add)
        Joins two arrays.

        If the base array is null, the add parameter is returned. If the add array is null, the base array is returned.

        Type Parameters:
        T - the type of the array
        Parameters:
        base - the base array to add to
        add - the array to add
        Returns:
        the joined array