Java Code Examples for com.helger.commons.ValueEnforcer#notNullNoNullValue()

The following examples show how to use com.helger.commons.ValueEnforcer#notNullNoNullValue() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ConfigFileBuilder.java    From ph-commons with Apache License 2.0 5 votes vote down vote up
@Nonnull
public ConfigFileBuilder addPaths (@Nonnull final String... aConfigPaths)
{
  ValueEnforcer.notNullNoNullValue (aConfigPaths, "ConfigPaths");
  for (final String sPath : aConfigPaths)
    addPath (sPath);
  return this;
}
 
Example 2
Source File: ConfigFileBuilder.java    From ph-commons with Apache License 2.0 5 votes vote down vote up
@Nonnull
public ConfigFileBuilder addPaths (@Nonnull final Iterable <String> aConfigPaths)
{
  ValueEnforcer.notNullNoNullValue (aConfigPaths, "ConfigPaths");
  for (final String sPath : aConfigPaths)
    addPath (sPath);
  return this;
}
 
Example 3
Source File: CallbackList.java    From ph-commons with Apache License 2.0 5 votes vote down vote up
@Nonnull
@SafeVarargs
public final EChange addAll (@Nonnull final CALLBACKTYPE... aCallbacks)
{
  ValueEnforcer.notNullNoNullValue (aCallbacks, "Callbacks");

  return m_aRWLock.writeLockedGet ( () -> m_aCallbacks.addAll (aCallbacks));
}
 
Example 4
Source File: CSSPageRule.java    From ph-css with Apache License 2.0 4 votes vote down vote up
public CSSPageRule (@Nonnull final Iterable <String> aSelectors)
{
  ValueEnforcer.notNullNoNullValue (aSelectors, "Selectors");
  m_aSelectors = new CommonsArrayList <> (aSelectors);
}