Tabnine Logo
TypedCollections.checkCollectionMembers
Code IndexAdd Tabnine to your IDE (free)

How to use
checkCollectionMembers
method
in
javax.faces.webapp.TypedCollections

Best Java code snippets using javax.faces.webapp.TypedCollections.checkCollectionMembers (Showing top 18 results out of 315)

origin: javax/javaee-web-api

  return null;                                                                     
assert checkCollectionMembers(map.keySet(), keyType) :
  "The map contains keys with a type other than " + keyType.getName();
assert checkCollectionMembers(map.values(), valueType) :
  "The map contains values with a type other than " + valueType.getName();
origin: com.sun.faces/jsf-api

  return null;                                                                     
assert checkCollectionMembers(map.keySet(), keyType) :
  "The map contains keys with a type other than " + keyType.getName();
assert checkCollectionMembers(map.values(), valueType) :
  "The map contains values with a type other than " + valueType.getName();
origin: org.glassfish/javax.faces

  return null;                                                                     
assert checkCollectionMembers(map.keySet(), keyType) :
  "The map contains keys with a type other than " + keyType.getName();
assert checkCollectionMembers(map.values(), valueType) :
  "The map contains values with a type other than " + valueType.getName();
origin: javax.faces/javax.faces-api

  return null;                                                                     
assert checkCollectionMembers(map.keySet(), keyType) :
  "The map contains keys with a type other than " + keyType.getName();
assert checkCollectionMembers(map.values(), valueType) :
  "The map contains values with a type other than " + valueType.getName();
origin: eclipse-ee4j/mojarra

  return null;                                                                     
assert checkCollectionMembers(map.keySet(), keyType) :
  "The map contains keys with a type other than " + keyType.getName();
assert checkCollectionMembers(map.values(), valueType) :
  "The map contains values with a type other than " + valueType.getName();
origin: jboss/jboss-javaee-specs

  return null;                                                                     
assert checkCollectionMembers(map.keySet(), keyType) :
  "The map contains keys with a type other than " + keyType.getName();
assert checkCollectionMembers(map.values(), valueType) :
  "The map contains values with a type other than " + valueType.getName();
origin: org.jboss.spec.javax.faces/jboss-jsf-api_2.0_spec

  return null;                                                                     
assert checkCollectionMembers(map.keySet(), keyType) :
  "The map contains keys with a type other than " + keyType.getName();
assert checkCollectionMembers(map.values(), valueType) :
  "The map contains values with a type other than " + valueType.getName();
origin: org.glassfish/jakarta.faces

  return null;                                                                     
assert checkCollectionMembers(map.keySet(), keyType) :
  "The map contains keys with a type other than " + keyType.getName();
assert checkCollectionMembers(map.values(), valueType) :
  "The map contains values with a type other than " + valueType.getName();
origin: eclipse-ee4j/mojarra

  return null;                                                                     
assert checkCollectionMembers(map.keySet(), keyType) :
  "The map contains keys with a type other than " + keyType.getName();
assert checkCollectionMembers(map.values(), valueType) :
  "The map contains values with a type other than " + valueType.getName();
origin: com.sun.faces/jsf-api

/**
 * Dynamically check that the members of the collection are all
 * instances of the given type (or null), and that the collection
 * itself is of the given collection type.
 * 
 * @param <E>
 *                the collection's element type
 * @param c
 *                the collection to cast
 * @param type
 *                the class of the collection's element type.
 * @return the dynamically-type checked collection.
 * @throws java.lang.ClassCastException
 */
@SuppressWarnings("unchecked")
 static <E,TypedC extends Collection<E>> TypedC dynamicallyCastCollection(Collection<?> c,
                                           Class<E> type, 
                                           Class<TypedC> collectionType) {
  if (c == null)
    return null;
  if (!collectionType.isInstance(c))
    throw new ClassCastException(c.getClass().getName());
  assert checkCollectionMembers(c, type) :
    "The collection contains members with a type other than " + type.getName();
  return collectionType.cast(c);
}
origin: javax/javaee-web-api

/**
 * Dynamically check that the members of the collection are all
 * instances of the given type (or null), and that the collection
 * itself is of the given collection type.
 * 
 * @param <E>
 *                the collection's element type
 * @param c
 *                the collection to cast
 * @param type
 *                the class of the collection's element type.
 * @return the dynamically-type checked collection.
 * @throws java.lang.ClassCastException
 */
@SuppressWarnings("unchecked")
 static <E,TypedC extends Collection<E>> TypedC dynamicallyCastCollection(Collection<?> c,
                                           Class<E> type, 
                                           Class<TypedC> collectionType) {
  if (c == null)
    return null;
  if (!collectionType.isInstance(c))
    throw new ClassCastException(c.getClass().getName());
  assert checkCollectionMembers(c, type) :
    "The collection contains members with a type other than " + type.getName();
  return collectionType.cast(c);
}
origin: org.glassfish/jakarta.faces

/**
 * Dynamically check that the members of the collection are all
 * instances of the given type (or null), and that the collection
 * itself is of the given collection type.
 * 
 * @param <E>
 *                the collection's element type
 * @param c
 *                the collection to cast
 * @param type
 *                the class of the collection's element type.
 * @return the dynamically-type checked collection.
 * @throws java.lang.ClassCastException
 */
@SuppressWarnings("unchecked")
 static <E,TypedC extends Collection<E>> TypedC dynamicallyCastCollection(Collection<?> c,
                                           Class<E> type, 
                                           Class<TypedC> collectionType) {
  if (c == null)
    return null;
  if (!collectionType.isInstance(c))
    throw new ClassCastException(c.getClass().getName());
  assert checkCollectionMembers(c, type) :
    "The collection contains members with a type other than " + type.getName();
  return collectionType.cast(c);
}
origin: org.glassfish/javax.faces

/**
 * Dynamically check that the members of the collection are all
 * instances of the given type (or null), and that the collection
 * itself is of the given collection type.
 * 
 * @param <E>
 *                the collection's element type
 * @param c
 *                the collection to cast
 * @param type
 *                the class of the collection's element type.
 * @return the dynamically-type checked collection.
 * @throws java.lang.ClassCastException
 */
@SuppressWarnings("unchecked")
 static <E,TypedC extends Collection<E>> TypedC dynamicallyCastCollection(Collection<?> c,
                                           Class<E> type, 
                                           Class<TypedC> collectionType) {
  if (c == null)
    return null;
  if (!collectionType.isInstance(c))
    throw new ClassCastException(c.getClass().getName());
  assert checkCollectionMembers(c, type) :
    "The collection contains members with a type other than " + type.getName();
  return collectionType.cast(c);
}
origin: javax.faces/javax.faces-api

/**
 * Dynamically check that the members of the collection are all
 * instances of the given type (or null), and that the collection
 * itself is of the given collection type.
 * 
 * @param <E>
 *                the collection's element type
 * @param c
 *                the collection to cast
 * @param type
 *                the class of the collection's element type.
 * @return the dynamically-type checked collection.
 * @throws java.lang.ClassCastException
 */
@SuppressWarnings("unchecked")
 static <E,TypedC extends Collection<E>> TypedC dynamicallyCastCollection(Collection<?> c,
                                           Class<E> type, 
                                           Class<TypedC> collectionType) {
  if (c == null)
    return null;
  if (!collectionType.isInstance(c))
    throw new ClassCastException(c.getClass().getName());
  assert checkCollectionMembers(c, type) :
    "The collection contains members with a type other than " + type.getName();
  return collectionType.cast(c);
}
origin: jboss/jboss-javaee-specs

/**
 * Dynamically check that the members of the collection are all
 * instances of the given type (or null), and that the collection
 * itself is of the given collection type.
 * 
 * @param <E>
 *                the collection's element type
 * @param c
 *                the collection to cast
 * @param type
 *                the class of the collection's element type.
 * @return the dynamically-type checked collection.
 * @throws java.lang.ClassCastException
 */
@SuppressWarnings("unchecked")
 static <E,TypedC extends Collection<E>> TypedC dynamicallyCastCollection(Collection<?> c,
                                           Class<E> type, 
                                           Class<TypedC> collectionType) {
  if (c == null)
    return null;
  if (!collectionType.isInstance(c))
    throw new ClassCastException(c.getClass().getName());
  assert checkCollectionMembers(c, type) :
    "The collection contains members with a type other than " + type.getName();
  return collectionType.cast(c);
}
origin: org.jboss.spec.javax.faces/jboss-jsf-api_2.0_spec

/**
 * Dynamically check that the members of the collection are all
 * instances of the given type (or null), and that the collection
 * itself is of the given collection type.
 * 
 * @param <E>
 *                the collection's element type
 * @param c
 *                the collection to cast
 * @param type
 *                the class of the collection's element type.
 * @return the dynamically-type checked collection.
 * @throws java.lang.ClassCastException
 */
@SuppressWarnings("unchecked")
 static <E,TypedC extends Collection<E>> TypedC dynamicallyCastCollection(Collection<?> c,
                                           Class<E> type, 
                                           Class<TypedC> collectionType) {
  if (c == null)
    return null;
  if (!collectionType.isInstance(c))
    throw new ClassCastException(c.getClass().getName());
  assert checkCollectionMembers(c, type) :
    "The collection contains members with a type other than " + type.getName();
  return collectionType.cast(c);
}
origin: eclipse-ee4j/mojarra

/**
 * Dynamically check that the members of the collection are all
 * instances of the given type (or null), and that the collection
 * itself is of the given collection type.
 * 
 * @param <E>
 *                the collection's element type
 * @param c
 *                the collection to cast
 * @param type
 *                the class of the collection's element type.
 * @return the dynamically-type checked collection.
 * @throws java.lang.ClassCastException
 */
@SuppressWarnings("unchecked")
 static <E,TypedC extends Collection<E>> TypedC dynamicallyCastCollection(Collection<?> c,
                                           Class<E> type, 
                                           Class<TypedC> collectionType) {
  if (c == null)
    return null;
  if (!collectionType.isInstance(c))
    throw new ClassCastException(c.getClass().getName());
  assert checkCollectionMembers(c, type) :
    "The collection contains members with a type other than " + type.getName();
  return collectionType.cast(c);
}
origin: eclipse-ee4j/mojarra

/**
 * Dynamically check that the members of the collection are all
 * instances of the given type (or null), and that the collection
 * itself is of the given collection type.
 * 
 * @param <E>
 *                the collection's element type
 * @param c
 *                the collection to cast
 * @param type
 *                the class of the collection's element type.
 * @return the dynamically-type checked collection.
 * @throws java.lang.ClassCastException
 */
@SuppressWarnings("unchecked")
 static <E,TypedC extends Collection<E>> TypedC dynamicallyCastCollection(Collection<?> c,
                                           Class<E> type, 
                                           Class<TypedC> collectionType) {
  if (c == null)
    return null;
  if (!collectionType.isInstance(c))
    throw new ClassCastException(c.getClass().getName());
  assert checkCollectionMembers(c, type) :
    "The collection contains members with a type other than " + type.getName();
  return collectionType.cast(c);
}
javax.faces.webappTypedCollectionscheckCollectionMembers

Javadoc

Dynamically check that the members of the collection are all instances of the given type (or null).

Popular methods of TypedCollections

  • dynamicallyCastList
    Dynamically check that the members of the list are all instances of the given type (or null).
  • dynamicallyCastSet
    Dynamically check that the members of the set are all instances of the given type (or null).
  • dynamicallyCastCollection
    Dynamically check that the members of the collection are all instances of the given type (or null),
  • dynamicallyCastMap
    Dynamically check that the keys and values in the map are all instances of the correct types (or nul

Popular in Java

  • Reactive rest calls using spring rest template
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setContentView (Activity)
  • getSharedPreferences (Context)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • JOptionPane (javax.swing)
  • From CI to AI: The AI layer in your organization
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