Returns {@code true} if the specified listener is one of the supported types.
@param listener the listener to test
@return if the listener is of a supported type
976399
public static boolean isSupportedType(EventListener listener) {
		for (Class<?> type : SUPPORTED_TYPES) {
			if (ClassUtils.isAssignableValue(type, listener)) {
				return true;
			}
		}
		return false;
	}
896087
protected boolean isPrimitiveBoolean(JvmTypeReference typeRef) {
		if (InferredTypeIndicator.isInferred(typeRef)) {
			return false;
		}
		
		return typeRef != null && typeRef.getType() != null &&
				!typeRef.getType().eIsProxy() &&
				"boolean".equals(typeRef.getType().getIdentifier());
	}
897802
public synchronized boolean addPreInvalidationListener(PreInvalidationListener listener) {
        if (bEnableListener && listener != null) {
            if (eventSource.getPreInvalidationListenerCount() > 0 && tc.isDebugEnabled()) {
                Tr.debug(tc, "addPreInvalidationListener() cacheName=" + this.cacheName + " one already exists. Overwriting old listener.");
            }
            eventSource.addListener(listener);
            return true;
        }
        return false;
    }
1017200
protected Future<T> removeFromListeners(
    GenericCompletionListener<? extends Future<T>> listener) {
    if (listener == null) {
      throw new IllegalArgumentException("The listener can't be null.");
    }

    if (!isDone()) {
      synchronized(this) {
        listeners.remove(listener);
      }
    }
    return this;
  }
96462
public void addListener(ISUPListener listener) {
        if (listener == null) {
            throw new NullPointerException("Listener must not be null!");
        }
        if (this.listeners.contains(listener)) {
            throw new IllegalArgumentException("Listener already present: " + listener + " !");
        } else {
            this.listeners.add(listener);
        }

    }
1129708
public boolean hasListeners(String propertyName) {
		if (listeners != null && listeners.getListenerCount(PropertyChangeListener.class) > 0) {
			// there is a generic listener
			return true;
		}
		if (children != null) {
			PropertyChangeSupport child = (PropertyChangeSupport) children.get(propertyName);
			if (child != null) {
				// The child will always have a listeners ArrayList.
				return child.hasListeners(propertyName);
			}
		}
		return false;
	}
783267
public boolean addEventListener(IEventListener listener) {
        log.debug("addEventListener - scope: {} {}", getName(), listener);
        return listeners.add(listener);
    }
1342966
public function listen( Listener $listener ) {

		if ( isset( $this->listeners[ $listener->get_tag() ] ) ) {
			return false;
		}

		$this->listeners[ $listener->get_tag() ] = $listener;

		return true;
	}
547522
public boolean removeOnTransactionBroadcastListener(OnTransactionBroadcastListener listener) {
        boolean result = ListenerRegistration.removeFromList(listener, peersTransactionBroadastEventListeners);
        for (Peer peer : getConnectedPeers())
            peer.removeOnTransactionBroadcastListener(listener);
        for (Peer peer : getPendingPeers())
            peer.removeOnTransactionBroadcastListener(listener);
        return result;
    }
925574
public VaadinForHeroku withApplicationListener(final String... listeners){
        checkVarArgsArguments(listeners);
        this.applicationListeners.addAll(Arrays.asList(listeners));
        return self();
    }
1189866
public <T extends CacheSpec<K, V>> T removalListener(RemovalListener<K, V> listener) {
      this.removalListener = listener;
      return Cast.as(this);
   }
1153329
public ListenerType<WebFragmentType<T>> getOrCreateListener()
   {
      List<Node> nodeList = childNode.get("listener");
      if (nodeList != null &&  nodeList.size() > 0)
      {
         return new ListenerTypeImpl<WebFragmentType<T>>(this, "listener", childNode, nodeList.get(0));
      }
      return createListener();
   }
450889
public boolean isTypeSupportedForDeserialization( TreeLogger logger, JClassType classType ) {
        return allSupportedDeserializationClass.contains( classType )
                || additionalSupportedTypes.isIncluded( logger, classType.getQualifiedSourceName() );
    }
1277782
function hasListener(event, fn) {
		return listeners[event] ?
			listeners[event].some(function(l) {
				return l === fn;
			}) :
			false;
	}
1118374
public static boolean isJavaBasicType(@Nullable Class<?> type) {
        if (type == null) {
            return false;
        }
        final String name = type.getName();
        return isJavaBasicType(name);
    }
1267322
public boolean addPhoneCalledListener(PhoneCalledListener listener) {
		synchronized (this) {
			if (callListeners.contains(listener)) {
				return true;
			}
			return callListeners.add(listener);
		}
	}
79025
public T itemSelected(AdapterView.OnItemSelectedListener listener) {

        if (view instanceof AdapterView) {
            AdapterView<?> alv = (AdapterView<?>) view;
            alv.setOnItemSelectedListener(listener);
        }

        return self();

    }