Codota Logo
ShindigTypeConverter.coerceToIterable
Code IndexAdd Codota to your IDE (free)

How to use
coerceToIterable
method
in
org.apache.shindig.expressions.ShindigTypeConverter

Best Java code snippets using org.apache.shindig.expressions.ShindigTypeConverter.coerceToIterable (Showing top 10 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: apache/shindig

@SuppressWarnings("unchecked")
public <T> T convert(Object obj, Class<T> type) throws ELException {
 // Handle boolean specially
 if (type == Boolean.class || type == Boolean.TYPE) {
  return (T) coerceToBoolean(obj);
 }
 if (type == JSONArray.class) {
  return (T) coerceToJsonArray(obj);
 }
 if (type == Iterable.class) {
  return (T) coerceToIterable(obj);
 }
 //  Nothing more we can do.
 return null;
}
origin: org.gatein.shindig/shindig-common

@SuppressWarnings("unchecked")
public <T> T convert(Object obj, Class<T> type) throws ELException {
 // Handle boolean specially
 if (type == Boolean.class || type == Boolean.TYPE) {
  return (T) coerceToBoolean(obj);
 }
 
 if (type == JSONArray.class) {
  return (T) coerceToJsonArray(obj);
 }
 
 if (type == Iterable.class) {
  return (T) coerceToIterable(obj);
 }
 
 //  Nothing more we can do.
 return null;
}
origin: com.lmco.shindig/shindig-common

@SuppressWarnings("unchecked")
public <T> T convert(Object obj, Class<T> type) throws ELException {
 // Handle boolean specially
 if (type == Boolean.class || type == Boolean.TYPE) {
  return (T) coerceToBoolean(obj);
 }
 
 if (type == JSONArray.class) {
  return (T) coerceToJsonArray(obj);
 }
 
 if (type == Iterable.class) {
  return (T) coerceToIterable(obj);
 }
 
 //  Nothing more we can do.
 return null;
}
origin: org.apache.shindig/shindig-common

@SuppressWarnings("unchecked")
public <T> T convert(Object obj, Class<T> type) throws ELException {
 // Handle boolean specially
 if (type == Boolean.class || type == Boolean.TYPE) {
  return (T) coerceToBoolean(obj);
 }
 if (type == JSONArray.class) {
  return (T) coerceToJsonArray(obj);
 }
 if (type == Iterable.class) {
  return (T) coerceToIterable(obj);
 }
 //  Nothing more we can do.
 return null;
}
origin: org.wso2.org.apache.shindig/shindig-common

@SuppressWarnings("unchecked")
public <T> T convert(Object obj, Class<T> type) throws ELException {
 // Handle boolean specially
 if (type == Boolean.class || type == Boolean.TYPE) {
  return (T) coerceToBoolean(obj);
 }
 if (type == JSONArray.class) {
  return (T) coerceToJsonArray(obj);
 }
 if (type == Iterable.class) {
  return (T) coerceToIterable(obj);
 }
 //  Nothing more we can do.
 return null;
}
origin: apache/shindig

return coerceToIterable(childList);
origin: org.wso2.org.apache.shindig/shindig-common

return coerceToIterable(childList);
origin: org.apache.shindig/shindig-common

return coerceToIterable(childList);
origin: org.gatein.shindig/shindig-common

return coerceToIterable(childList);
origin: com.lmco.shindig/shindig-common

return coerceToIterable(childList);
org.apache.shindig.expressionsShindigTypeConvertercoerceToIterable

Javadoc

Coerce objects to iterables. Iterables and JSONArrays have the obvious coercion. JSONObjects are coerced to single-element lists, unless they have a "list" property that is in array, in which case that's used.

Popular methods of ShindigTypeConverter

  • coerceToBoolean
    Coerce the following booleans: null -> false empty string, and "false" -> false boolean false -> fal
  • coerceToJsonArray
  • convert

Popular in Java

  • Creating JSON documents from java classes using gson
  • onCreateOptionsMenu (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • ImageIO (javax.imageio)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now