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

How to use
TypedCollections
in
javax.faces.webapp

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

origin: javax.faces/com.springsource.javax.faces

/**
 * <p>Push the specified {@link UIComponentTag} instance onto our component
 * tag stack, creating a stack if necessary.</p>
 */
private void pushUIComponentClassicTagBase() {
  Map<String,Object> requestMap =
     context.getExternalContext().getRequestMap();
  List<UIComponentClassicTagBase> list = TypedCollections.dynamicallyCastList((List)
     requestMap.get(COMPONENT_TAG_STACK_ATTR), UIComponentClassicTagBase.class);
  if (list == null) {
    //noinspection CollectionWithoutInitialCapacity
    list = new ArrayList<UIComponentClassicTagBase>();
    requestMap.put(COMPONENT_TAG_STACK_ATTR, list);
  }
  list.add(this);
}
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: org.glassfish/javax.faces

/**
 * Dynamically check that the members of the list are all instances of
 * the given type (or null).
 * 
 * @param <E>
 *                the list's element type
 * @param list
 *                the list to cast
 * @param type
 *                the class of the list's element type.
 * @return the dynamically-type checked list.
 * @throws java.lang.ClassCastException
 */
@SuppressWarnings("unchecked")
 static <E> List<E> dynamicallyCastList(List<?> list, Class<E> type) {
  return dynamicallyCastCollection(list, type, List.class);
}
origin: javax/javaee-web-api

Set<String> previousJspIdSet = TypedCollections.dynamicallyCastSet((Set)
    pageContext.getAttribute(PREVIOUS_JSP_ID_SET, PageContext.PAGE_SCOPE), String.class);
origin: javax.faces/com.springsource.javax.faces

  requestMap.put(GLOBAL_ID_VIEW, componentIds);
} else {
  componentIds = TypedCollections.dynamicallyCastMap((Map)
  requestMap.get(GLOBAL_ID_VIEW), String.class, UIComponentTagBase.class);
origin: javax.faces/com.springsource.javax.faces

Set<String> previousJspIdSet;
if (null == (previousJspIdSet = TypedCollections.dynamicallyCastSet((Set)
  pageContext.getAttribute(PREVIOUS_JSP_ID_SET, PageContext.PAGE_SCOPE), String.class))) {
origin: javax/javaee-web-api

/**
 * <p>Push the specified {@link UIComponentTag} instance onto our component
 * tag stack, creating a stack if necessary.</p>
 */
private void pushUIComponentClassicTagBase() {
  List<UIComponentClassicTagBase> list = TypedCollections.dynamicallyCastList((List)
      context.getAttributes().get(COMPONENT_TAG_STACK_ATTR), UIComponentClassicTagBase.class);
  if (list == null) {
    //noinspection CollectionWithoutInitialCapacity
    list = new ArrayList<>();
    context.getAttributes().put(COMPONENT_TAG_STACK_ATTR, list);
  }
  list.add(this);
}
origin: com.sun.faces/jsf-api

/**
 * Dynamically check that the members of the set are all instances of
 * the given type (or null).
 * 
 * @param <E>
 *                the set's element type
 * @param set
 *                the set to cast
 * @param type
 *                the class of the set's element type.
 * @return the dynamically-type checked set.
 * @throws java.lang.ClassCastException
 */
@SuppressWarnings("unchecked")
 static <E> Set<E> dynamicallyCastSet(Set<?> set, 
                         Class<E> type) {
  return dynamicallyCastCollection(set, type, Set.class);
}
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: com.sun.faces/jsf-api

Set<String> previousJspIdSet = TypedCollections.dynamicallyCastSet((Set)
    pageContext.getAttribute(PREVIOUS_JSP_ID_SET, PageContext.PAGE_SCOPE), String.class);
origin: com.sun.faces/jsf-api

/**
 * <p>Push the specified {@link UIComponentTag} instance onto our component
 * tag stack, creating a stack if necessary.</p>
 */
private void pushUIComponentClassicTagBase() {
  List<UIComponentClassicTagBase> list = TypedCollections.dynamicallyCastList((List)
      context.getAttributes().get(COMPONENT_TAG_STACK_ATTR), UIComponentClassicTagBase.class);
  if (list == null) {
    //noinspection CollectionWithoutInitialCapacity
    list = new ArrayList<UIComponentClassicTagBase>();
    context.getAttributes().put(COMPONENT_TAG_STACK_ATTR, list);
  }
  list.add(this);
}
origin: javax/javaee-web-api

/**
 * Dynamically check that the members of the list are all instances of
 * the given type (or null).
 * 
 * @param <E>
 *                the list's element type
 * @param list
 *                the list to cast
 * @param type
 *                the class of the list's element type.
 * @return the dynamically-type checked list.
 * @throws java.lang.ClassCastException
 */
@SuppressWarnings("unchecked")
 static <E> List<E> dynamicallyCastList(List<?> list, Class<E> type) {
  return dynamicallyCastCollection(list, type, List.class);
}
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: javax.faces/javax.faces-api

Set<String> previousJspIdSet = TypedCollections.dynamicallyCastSet((Set)
    pageContext.getAttribute(PREVIOUS_JSP_ID_SET, PageContext.PAGE_SCOPE), String.class);
origin: org.glassfish/javax.faces

/**
 * <p>Push the specified {@link UIComponentTag} instance onto our component
 * tag stack, creating a stack if necessary.</p>
 */
private void pushUIComponentClassicTagBase() {
  List<UIComponentClassicTagBase> list = TypedCollections.dynamicallyCastList((List)
      context.getAttributes().get(COMPONENT_TAG_STACK_ATTR), UIComponentClassicTagBase.class);
  if (list == null) {
    //noinspection CollectionWithoutInitialCapacity
    list = new ArrayList<>();
    context.getAttributes().put(COMPONENT_TAG_STACK_ATTR, list);
  }
  list.add(this);
}
origin: javax/javaee-web-api

/**
 * Dynamically check that the members of the set are all instances of
 * the given type (or null).
 * 
 * @param <E>
 *                the set's element type
 * @param set
 *                the set to cast
 * @param type
 *                the class of the set's element type.
 * @return the dynamically-type checked set.
 * @throws java.lang.ClassCastException
 */
@SuppressWarnings("unchecked")
 static <E> Set<E> dynamicallyCastSet(Set<?> set, 
                         Class<E> type) {
  return dynamicallyCastCollection(set, type, Set.class);
}
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

Set<String> previousJspIdSet = TypedCollections.dynamicallyCastSet((Set)
    pageContext.getAttribute(PREVIOUS_JSP_ID_SET, PageContext.PAGE_SCOPE), String.class);
origin: org.jboss.spec.javax.faces/jboss-jsf-api_2.0_spec

/**
 * <p>Push the specified {@link UIComponentTag} instance onto our component
 * tag stack, creating a stack if necessary.</p>
 */
private void pushUIComponentClassicTagBase() {
  List<UIComponentClassicTagBase> list = TypedCollections.dynamicallyCastList((List)
      context.getAttributes().get(COMPONENT_TAG_STACK_ATTR), UIComponentClassicTagBase.class);
  if (list == null) {
    //noinspection CollectionWithoutInitialCapacity
    list = new ArrayList<UIComponentClassicTagBase>();
    context.getAttributes().put(COMPONENT_TAG_STACK_ATTR, list);
  }
  list.add(this);
}
origin: com.sun.faces/jsf-api

/**
 * Dynamically check that the members of the list are all instances of
 * the given type (or null).
 * 
 * @param <E>
 *                the list's element type
 * @param list
 *                the list to cast
 * @param type
 *                the class of the list's element type.
 * @return the dynamically-type checked list.
 * @throws java.lang.ClassCastException
 */
@SuppressWarnings("unchecked")
 static <E> List<E> dynamicallyCastList(List<?> list, Class<E> type) {
  return dynamicallyCastCollection(list, type, List.class);
}
javax.faces.webappTypedCollections

Most used methods

  • 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).
  • checkCollectionMembers
    Dynamically check that the members of the collection 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
  • getResourceAsStream (ClassLoader)
  • findViewById (Activity)
  • setScale (BigDecimal)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Path (java.nio.file)
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top PhpStorm plugins
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