Tabnine Logo
Multimap.get
Code IndexAdd Tabnine to your IDE (free)

How to use
get
method
in
org.jboss.weld.util.collections.Multimap

Best Java code snippets using org.jboss.weld.util.collections.Multimap.get (Showing top 20 results out of 315)

origin: wildfly/wildfly

private Set<String> getImplicitBeanClasses(Index index, ResourceRoot resourceRoot) {
  Set<String> implicitBeanClasses = new HashSet<String>();
  for (AnnotationType beanDefiningAnnotation : beanDefiningAnnotations) {
    List<AnnotationInstance> annotationInstances = index.getAnnotations(beanDefiningAnnotation.getName());
    for (ClassInfo classInfo : Indices.getAnnotatedClasses(annotationInstances)) {
      implicitBeanClasses.add(Indices.CLASS_INFO_TO_FQCN.apply(classInfo));
    }
  }
  // Make all explicit components into implicit beans so they will support injection
  for(ComponentDescription description : components.componentDescriptions.get(resourceRoot)) {
    if(!components.implicitComponentDescriptions.contains(description)) {
      implicitBeanClasses.add(description.getComponentClassName());
    }
  }
  return implicitBeanClasses;
}
origin: org.jboss.weld.se/weld-se

private boolean isAlternativeBean(Class<?> enabledClass, Multimap<Class<?>, Bean<?>> beansByClass) {
  // check that the class is a bean class of at least one alternative
  for (Bean<?> bean : beansByClass.get(enabledClass)) {
    if (bean.isAlternative()) {
      return true;
    }
  }
  return false;
}
origin: weld/core

private boolean isAlternativeBean(Class<?> enabledClass, Multimap<Class<?>, Bean<?>> beansByClass) {
  // check that the class is a bean class of at least one alternative
  for (Bean<?> bean : beansByClass.get(enabledClass)) {
    if (bean.isAlternative()) {
      return true;
    }
  }
  return false;
}
origin: weld/core

private boolean isAlternativeBean(Class<?> enabledClass, Multimap<Class<?>, Bean<?>> beansByClass) {
  // check that the class is a bean class of at least one alternative
  for (Bean<?> bean : beansByClass.get(enabledClass)) {
    if (bean.isAlternative()) {
      return true;
    }
  }
  return false;
}
origin: weld/core

private boolean isAlternativeBean(Class<?> enabledClass, Multimap<Class<?>, Bean<?>> beansByClass) {
  // check that the class is a bean class of at least one alternative
  for (Bean<?> bean : beansByClass.get(enabledClass)) {
    if (bean.isAlternative()) {
      return true;
    }
  }
  return false;
}
origin: weld/core

/**
 * Returns unmodifiable collections. Moreover, it does not trigger initialization of a new value collection (i.e. when no collection of values for a
 * given key exists).
 */
@Override
public Collection<V> get(K key) {
  if (delegate.containsKey(key)) {
    return unmodifiableValueCollection(delegate.get(key));
  }
  return Collections.emptyList();
}
origin: org.jboss.weld.se/weld-se

@Override
public Set<Annotation> getDeclaredMetaAnnotations(Class<? extends Annotation> metaAnnotationType) {
  return declaredMetaAnnotationMap.containsKey(metaAnnotationType)
      ? ImmutableSet.copyOf(declaredMetaAnnotationMap.get(metaAnnotationType))
      : Collections.<Annotation> emptySet();
}
origin: org.jboss.weld.se/weld-se

/**
 * Returns unmodifiable collections. Moreover, it does not trigger initialization of a new value collection (i.e. when no collection of values for a
 * given key exists).
 */
@Override
public Collection<V> get(K key) {
  if (delegate.containsKey(key)) {
    return unmodifiableValueCollection(delegate.get(key));
  }
  return Collections.emptyList();
}
origin: weld/core

/**
 * Returns unmodifiable collections. Moreover, it does not trigger initialization of a new value collection (i.e. when no collection of values for a
 * given key exists).
 */
@Override
public Collection<V> get(K key) {
  if (delegate.containsKey(key)) {
    return unmodifiableValueCollection(delegate.get(key));
  }
  return Collections.emptyList();
}
origin: weld/core

@Override
public Set<Annotation> getDeclaredMetaAnnotations(Class<? extends Annotation> metaAnnotationType) {
  return declaredMetaAnnotationMap.containsKey(metaAnnotationType) ? ImmutableSet.copyOf(declaredMetaAnnotationMap.get(metaAnnotationType))
      : Collections.emptySet();
}
origin: weld/core

@Override
public Set<Annotation> getDeclaredMetaAnnotations(Class<? extends Annotation> metaAnnotationType) {
  return declaredMetaAnnotationMap.containsKey(metaAnnotationType) ? ImmutableSet.copyOf(declaredMetaAnnotationMap.get(metaAnnotationType))
      : Collections.emptySet();
}
origin: weld/core

@Override
public Set<Annotation> getDeclaredMetaAnnotations(Class<? extends Annotation> metaAnnotationType) {
  return declaredMetaAnnotationMap.containsKey(metaAnnotationType) ? ImmutableSet.copyOf(declaredMetaAnnotationMap.get(metaAnnotationType))
      : Collections.emptySet();
}
origin: weld/core

/**
 * Returns unmodifiable collections. Moreover, it does not trigger initialization of a new value collection (i.e. when no collection of values for a
 * given key exists).
 */
@Override
public Collection<V> get(K key) {
  if (delegate.containsKey(key)) {
    return unmodifiableValueCollection(delegate.get(key));
  }
  return Collections.emptyList();
}
origin: org.jboss.weld.se/weld-se-shaded

/**
 * Returns unmodifiable collections. Moreover, it does not trigger initialization of a new value collection (i.e. when no collection of values for a
 * given key exists).
 */
@Override
public Collection<V> get(K key) {
  if (delegate.containsKey(key)) {
    return unmodifiableValueCollection(delegate.get(key));
  }
  return Collections.emptyList();
}
origin: org.jboss.weld.servlet/weld-servlet-shaded

@Override
public Set<Annotation> getDeclaredMetaAnnotations(Class<? extends Annotation> metaAnnotationType) {
  return declaredMetaAnnotationMap.containsKey(metaAnnotationType) ? ImmutableSet.copyOf(declaredMetaAnnotationMap.get(metaAnnotationType))
      : Collections.emptySet();
}
origin: org.jboss.eap/wildfly-weld-ejb

@Override
public void registerComponents(ResourceRoot resourceRoot, WildFlyBeanDeploymentArchive beanDeploymentArchive, DeploymentReflectionIndex reflectionIndex) {
  for (EJBComponentDescription ejb : ejbComponentDescriptions.get(resourceRoot)) {
    beanDeploymentArchive.addEjbDescriptor(new EjbDescriptorImpl<Object>(ejb, beanDeploymentArchive, reflectionIndex));
    beanDeploymentArchive.addBeanClass(ejb.getComponentClassName());
  }
}
origin: org.jboss.weld.se/weld-se

private static boolean isOverridden(EnhancedAnnotatedMethod<?, ?> method, Multimap<MethodSignature, Package> seenMethods) {
  if (method.isPrivate()) {
    return false;
  } else if (method.isPackagePrivate() && seenMethods.containsKey(method.getSignature())) {
    return seenMethods.get(method.getSignature()).contains(method.getPackage());
  } else {
    return seenMethods.containsKey(method.getSignature());
  }
}
origin: weld/core

private static boolean isOverridden(EnhancedAnnotatedMethod<?, ?> method, Multimap<MethodSignature, Package> seenMethods) {
  if (method.isPrivate()) {
    return false;
  } else if (method.isPackagePrivate() && seenMethods.containsKey(method.getSignature())) {
    return seenMethods.get(method.getSignature()).contains(method.getPackage());
  } else {
    return seenMethods.containsKey(method.getSignature());
  }
}
origin: weld/core

private static boolean isOverridden(EnhancedAnnotatedMethod<?, ?> method, Multimap<MethodSignature, Package> seenMethods) {
  if (method.isPrivate()) {
    return false;
  } else if (method.isPackagePrivate() && seenMethods.containsKey(method.getSignature())) {
    return seenMethods.get(method.getSignature()).contains(method.getPackage());
  } else {
    return seenMethods.containsKey(method.getSignature());
  }
}
origin: weld/core

private static boolean isOverridden(EnhancedAnnotatedMethod<?, ?> method, Multimap<MethodSignature, Package> seenMethods) {
  if (method.isPrivate()) {
    return false;
  } else if (method.isPackagePrivate() && seenMethods.containsKey(method.getSignature())) {
    return seenMethods.get(method.getSignature()).contains(method.getPackage());
  } else {
    return seenMethods.containsKey(method.getSignature());
  }
}
org.jboss.weld.util.collectionsMultimapget

Javadoc

This method never returns null. If no collection of values for a given key exists a new value collection is initialized.

Popular methods of Multimap

  • entrySet
    Entry#getValue() always returns an unmodifiable collection. Entry#setValue(Object) operation is not
  • put
  • isEmpty
  • containsKey
  • keySet
  • size
    Unlike Guava'sMultimap#size() this method returns the number of key-value mappings.
  • uniqueValues
  • values
    The list may include the same value multiple times if it occurs in multiple mappings or if the colle
  • replaceValues
    Note that the original collection of values is completely replaced by a new collection which contain

Popular in Java

  • Making http requests using okhttp
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSupportFragmentManager (FragmentActivity)
  • getApplicationContext (Context)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • String (java.lang)
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Notification (javax.management)
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now