Tabnine Logo
Postman.getParcelerForClass
Code IndexAdd Tabnine to your IDE (free)

How to use
getParcelerForClass
method
in
com.workday.postman.Postman

Best Java code snippets using com.workday.postman.Postman.getParcelerForClass (Showing top 6 results out of 315)

origin: com.workday/postman

/**
 * Write the specified Object to a {@link Parcel}.
 *
 * @param object The Object to be written to the Parcel.
 * @param parcel The destination Parcel.
 * @param <T> The type of the Object.
 *
 * @throws PostmanException if there is no {@link Parceler} associated with the given type.
 */
public static <T> void writeToParcel(T object, Parcel parcel) throws PostmanException {
  @SuppressWarnings("unchecked")
  Parceler<T> parceler = getParcelerForClass((Class<T>) object.getClass());
  parceler.writeToParcel(object, parcel);
}
origin: Workday/postman

/**
 * Write the specified Object to a {@link Parcel}.
 *
 * @param object The Object to be written to the Parcel.
 * @param parcel The destination Parcel.
 * @param <T> The type of the Object.
 *
 * @throws PostmanException if there is no {@link Parceler} associated with the given type.
 */
public static <T> void writeToParcel(T object, Parcel parcel) throws PostmanException {
  @SuppressWarnings("unchecked")
  Parceler<T> parceler = getParcelerForClass((Class<T>) object.getClass());
  parceler.writeToParcel(object, parcel);
}
origin: com.workday/postman

/**
 * Reads an object of the specified class from the given Parcel.
 *
 * @param clazz The class of the object to be read.
 * @param parcel The source Parcel.
 * @param <T> The type of the Object.
 *
 * @return A new instance of the specified type instantiated from the Parcel.
 *
 * @throws PostmanException if there is no {@link Parceler} associated with the given type.
 */
public static <T> T readFromParcel(Class<T> clazz, Parcel parcel) throws PostmanException {
  Parceler<T> parceler = getParcelerForClass(clazz);
  return parceler.readFromParcel(parcel);
}
origin: Workday/postman

/**
 * Reads an object of the specified class from the given Parcel.
 *
 * @param clazz The class of the object to be read.
 * @param parcel The source Parcel.
 * @param <T> The type of the Object.
 *
 * @return A new instance of the specified type instantiated from the Parcel.
 *
 * @throws PostmanException if there is no {@link Parceler} associated with the given type.
 */
public static <T> T readFromParcel(Class<T> clazz, Parcel parcel) throws PostmanException {
  Parceler<T> parceler = getParcelerForClass(clazz);
  return parceler.readFromParcel(parcel);
}
origin: com.workday/postman

/**
 * Creates of new array of the specified type with the specified size.
 *
 * @param clazz The class associated with the type of array to create.
 * @param size The desired size of the array.
 * @param <T> The type of the array to create.
 *
 * @return A new array of the specified type with the specified size.
 *
 * @throws PostmanException if there is no {@link Parceler} associated with the given type.
 * @see Creator#newArray(int)
 */
public static <T> T[] newArray(Class<T> clazz, int size) throws PostmanException {
  Parceler<T> parceler = getParcelerForClass(clazz);
  return parceler.newArray(size);
}
origin: Workday/postman

/**
 * Creates of new array of the specified type with the specified size.
 *
 * @param clazz The class associated with the type of array to create.
 * @param size The desired size of the array.
 * @param <T> The type of the array to create.
 *
 * @return A new array of the specified type with the specified size.
 *
 * @throws PostmanException if there is no {@link Parceler} associated with the given type.
 * @see Creator#newArray(int)
 */
public static <T> T[] newArray(Class<T> clazz, int size) throws PostmanException {
  Parceler<T> parceler = getParcelerForClass(clazz);
  return parceler.newArray(size);
}
com.workday.postmanPostmangetParcelerForClass

Popular methods of Postman

  • newCreator
  • writeToParcel
    Write the specified Object to a Parcel.

Popular in Java

  • Finding current android device location
  • runOnUiThread (Activity)
  • setRequestProperty (URLConnection)
  • getSystemService (Context)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • JFileChooser (javax.swing)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top plugins for WebStorm
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