com.h3c.util

## Class EnvUtils

- java.lang.Object
- - com.h3c.util.EnvUtils

-     public final class EnvUtils
      extends Object

  Provides useful utilities concerning the run-time environment.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `EnvUtils()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static boolean` | `isPropertyTrue(String propertyName)` Predicate that returns true if the given system property is set true.
    `static boolean` | `showOutput()` Predicate that returns true if the "show.output" system property is set.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### EnvUtils

          public EnvUtils()

  - ### Method Detail

    - #### isPropertyTrue

          public static boolean isPropertyTrue(String propertyName)

      Predicate that returns true if the given system property is set true. For example:

           if (EnvUtils.isPropertyTrue("foo.bar")) {
             ...
           }

      will be true if the option `-Dfoo.bar=true` was included in the VM parameters.
      Parameters:
        `propertyName` - the name of the system property
      Returns:
        true if the specified property is set true

    - #### showOutput

          public static boolean showOutput()

      Predicate that returns true if the "show.output" system property is set.
      Returns:
        true if VM parameter defined: `-Dshow.output=true`

Copyright © 2014. All Rights Reserved.