Tabnine Logo
ShindigTypeConverter.coerceToIterable
Code IndexAdd Tabnine 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)

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

  • Making http post requests using okhttp
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • startActivity (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Reference (javax.naming)
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • 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