Codota Logo
NonPrimitiveArrayBackedReadOnlyList.<init>
Code IndexAdd Codota to your IDE (free)

How to use
freemarker.ext.beans.NonPrimitiveArrayBackedReadOnlyList
constructor

Best Java code snippets using freemarker.ext.beans.NonPrimitiveArrayBackedReadOnlyList.<init> (Showing top 3 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: org.freemarker/freemarker

/**
 * @param array Must be an array (of either a reference or primitive type)
 */
List<?> arrayToList(Object array) throws TemplateModelException {
  if (array instanceof Object[]) {
    // Array of any non-primitive type.
    // Note that an array of non-primitive type is always instanceof Object[].
    Object[] objArray = (Object[]) array;
    return objArray.length == 0 ? Collections.EMPTY_LIST : new NonPrimitiveArrayBackedReadOnlyList(objArray);
  } else {
    // Array of any primitive type
    return Array.getLength(array) == 0 ? Collections.EMPTY_LIST : new PrimtiveArrayBackedReadOnlyList(array);
  }
}
origin: org.freemarker/freemarker-gae

/**
 * @param array Must be an array (of either a reference or primitive type)
 */
List<?> arrayToList(Object array) throws TemplateModelException {
  if (array instanceof Object[]) {
    // Array of any non-primitive type.
    // Note that an array of non-primitive type is always instanceof Object[].
    Object[] objArray = (Object[]) array;
    return objArray.length == 0 ? Collections.EMPTY_LIST : new NonPrimitiveArrayBackedReadOnlyList(objArray);
  } else {
    // Array of any primitive type
    return Array.getLength(array) == 0 ? Collections.EMPTY_LIST : new PrimtiveArrayBackedReadOnlyList(array);
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.freemarker

/**
 * @param array Must be an array (of either a reference or primitive type)
 */
List<?> arrayToList(Object array) throws TemplateModelException {
  if (array instanceof Object[]) {
    // Array of any non-primitive type.
    // Note that an array of non-primitive type is always instanceof Object[].
    Object[] objArray = (Object[]) array;
    return objArray.length == 0 ? Collections.EMPTY_LIST : new NonPrimitiveArrayBackedReadOnlyList(objArray);
  } else {
    // Array of any primitive type
    return Array.getLength(array) == 0 ? Collections.EMPTY_LIST : new PrimtiveArrayBackedReadOnlyList(array);
  }
}
freemarker.ext.beansNonPrimitiveArrayBackedReadOnlyList<init>

Popular methods of NonPrimitiveArrayBackedReadOnlyList

    Popular in Java

    • Finding current android device location
    • putExtra (Intent)
    • getContentResolver (Context)
    • scheduleAtFixedRate (ScheduledExecutorService)
      Creates and executes a periodic action that becomes enabled first after the given initial delay, and
    • Rectangle (java.awt)
      A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
    • InputStream (java.io)
      A readable source of bytes.Most clients will use input streams that read data from the file system (
    • System (java.lang)
      Provides access to system-related information and resources including standard input and output. Ena
    • DateFormat (java.text)
      Formats or parses dates and times.This class provides factories for obtaining instances configured f
    • NoSuchElementException (java.util)
      Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
    • Notification (javax.management)
    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