Package org.ardverk.lang

Examples of org.ardverk.lang.NullArgumentException


     * Creates an {@link AsyncFutureTask} with the given
     * {@link Callable}.
     */
    public AsyncFutureTask(Callable<V> callable) {
        if (callable == null) {
            throw new NullArgumentException("callable");
        }
       
        this.callable = callable;
    }
View Full Code Here


    /**
     * Creates an {@link AsyncExchanger} that uses the given lock Object
     */
    public AsyncExchanger(Object lock) {
        if (lock == null) {
            throw new NullArgumentException("lock");
        }
       
        this.lock = (lock != THIS) ? lock : this;    
    }
View Full Code Here

    /**
     * Sets the Exception that will be thrown by the get() method
     */
    public boolean setException(E exception) {
        if (exception == null) {
            throw new NullArgumentException("exception");
        }
       
        synchronized (lock) {
            if (done || cancelled) {
                return false;
View Full Code Here

    }
   
    @Override
    public void addAsyncFutureListener(AsyncFutureListener<V> listener) {
        if (listener == null) {
            throw new NullArgumentException("listener");
        }
       
        boolean done = false;
       
        synchronized (this) {
View Full Code Here

    }

    @Override
    public synchronized void removeAsyncFutureListener(AsyncFutureListener<V> listener) {
        if (listener == null) {
            throw new NullArgumentException("listener");
        }
       
        if (first == listener) {
            if (before == null || before.isEmpty()) {
                first = null;
View Full Code Here

TOP

Related Classes of org.ardverk.lang.NullArgumentException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.