Tabnine Logo
InputFieldJsonWriter.writeList
Code IndexAdd Tabnine to your IDE (free)

How to use
writeList
method
in
com.apollographql.apollo.internal.json.InputFieldJsonWriter

Best Java code snippets using com.apollographql.apollo.internal.json.InputFieldJsonWriter.writeList (Showing top 2 results out of 315)

origin: apollographql/apollo-android

@Test
public void writeList() throws IOException {
 inputFieldJsonWriter.writeList("someField", new InputFieldWriter.ListWriter() {
  @Override public void write(@NotNull InputFieldWriter.ListItemWriter listItemWriter) throws IOException {
   listItemWriter.writeString("someValue");
  }
 });
 inputFieldJsonWriter.writeList("someNullField", null);
 assertThat(jsonBuffer.readUtf8()).isEqualTo("{\"someField\":[\"someValue\"],\"someNullField\":null");
}
origin: apollographql/apollo-android

@Test
public void writeListOfList() throws IOException {
 inputFieldJsonWriter.writeList("someField", new InputFieldWriter.ListWriter() {
  @Override public void write(@NotNull InputFieldWriter.ListItemWriter listItemWriter) throws IOException {
   listItemWriter.writeList(new InputFieldWriter.ListWriter() {
    @Override public void write(@NotNull InputFieldWriter.ListItemWriter listItemWriter) throws IOException {
     listItemWriter.writeString("someValue");
    }
   });
  }
 });
 inputFieldJsonWriter.writeList("someNullField", null);
 assertThat(jsonBuffer.readUtf8()).isEqualTo("{\"someField\":[[\"someValue\"]],\"someNullField\":null");
}
com.apollographql.apollo.internal.jsonInputFieldJsonWriterwriteList

Popular methods of InputFieldJsonWriter

  • <init>
  • writeString
  • writeBoolean
  • writeNumber
  • writeCustom
  • writeDouble
  • writeInt
  • writeLong
  • writeMap
  • writeObject

Popular in Java

  • Updating database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • compareTo (BigDecimal)
  • notifyDataSetChanged (ArrayAdapter)
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • JFrame (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Top plugins for Android Studio
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