Refine search
/** * Set addition parameters for {@link #run() running}. * <p> * The default value is empty list (it means no additional parameters). * @param additionalParameters addition parameters for {@link #run() running}. * @return the PHP Executable instance itself */ public PhpExecutable additionalParameters(@NonNull List<String> additionalParameters) { Parameters.notNull("additionalParameters", additionalParameters); // NOI18N this.additionalParameters = additionalParameters; return this; }
/** * Create a new {@code ProjectProblemsProviderSupport}. * * @param source an instance to be given as the source for events, never {@code null} */ public ProjectProblemsProviderSupport(@NonNull Object source) { Parameters.notNull("source", source); propertyChangeSupport = new PropertyChangeSupport(source); }
/** * Add a listener to the listener list. * @param listener {@link PropertyChangeListener} to be added, never {@code null} * @see PropertyChangeSupport#addPropertyChangeListener(PropertyChangeListener) */ public void addPropertyChangeListener(@NonNull PropertyChangeListener listener) { Parameters.notNull("listener", listener); propertyChangeSupport.addPropertyChangeListener(listener); }
/** * Remove a listener from the listener list. * @param listener {@link PropertyChangeListener} to be removed, never {@code null} * @see PropertyChangeSupport#removePropertyChangeListener(PropertyChangeListener) */ public void removePropertyChangeListener(@NonNull PropertyChangeListener listener) { Parameters.notNull("listener", listener); propertyChangeSupport.removePropertyChangeListener(listener); }
TextStream(@NonNull final Collection<? extends URL> urls) { Parameters.notNull("urls", urls); //NOI18N final List<URL> tmpUrls = new ArrayList<>(urls.size()); for (URL u : urls) { Parameters.notNull("urls[]", u); //NOI18N tmpUrls.add(u); } if (tmpUrls.isEmpty()) { throw new IllegalArgumentException("At least one URL has to be given."); //NOI18N } this.urls = Collections.unmodifiableList(tmpUrls); }
private Reference( @NonNull final String classPathId, @NonNull final String rawId, @NullAllowed final Profile requiredProfile) { Parameters.notNull("classPathId", classPathId); //NOI18N Parameters.notNull("rawId", rawId); //NOI18N this.classPathId = classPathId; this.rawId = rawId; this.requiredProfile = requiredProfile; }
public static <T> T writeAction(@NonNull final Callable<T> action) throws Exception { Parameters.notNull("action", action); //NOI18N LOCK.writeLock().lock(); try { LOG.log(Level.FINE, "Write locked by {0}", Thread.currentThread()); //NOI18N return action.call(); } finally { LOCK.writeLock().unlock(); } }
/** * Creates a qualified identifier from an element. Simple name will automatically * be used if appropriate, adding any needed imports, following user's preferences. * * @param element the element to use. */ public @NonNull ExpressionTree QualIdent(@NonNull Element element) { Parameters.notNull("element", element); return delegate.QualIdent(element); }