Package ucar.nc2.util

Class DebugFlagsImpl

  • All Implemented Interfaces:
    DebugFlags

    public class DebugFlagsImpl
    extends Object
    implements DebugFlags
    An implementation of DebugFlags TODO will move in ver 6
    • Constructor Detail

      • DebugFlagsImpl

        public DebugFlagsImpl()
        All flags are off
      • DebugFlagsImpl

        public DebugFlagsImpl​(String flagsOn)
        Constructor.
        Parameters:
        flagsOn - space-separated list of flags to turn on.
    • Method Detail

      • isSet

        public boolean isSet​(String flagName)
        Description copied from interface: DebugFlags
        Test if named debug flag is set.
        Specified by:
        isSet in interface DebugFlags
        Parameters:
        flagName - name of flag
        Returns:
        true if named flag is set true
      • set

        public void set​(String flagName,
                        boolean value)
        Description copied from interface: DebugFlags
        Set named debug flag.
        Specified by:
        set in interface DebugFlags
        Parameters:
        flagName - set this flag
        value - set to this value
      • getSetFlags

        public String getSetFlags()
        Description copied from interface: DebugFlags
        Return the string representing the current debug flag(s) set. Flags can be either or false - they just need to be set.
        Specified by:
        getSetFlags in interface DebugFlags