Tabnine Logo
Record.hasField
Code IndexAdd Tabnine to your IDE (free)

How to use
hasField
method
in
com.apollographql.apollo.cache.normalized.Record

Best Java code snippets using com.apollographql.apollo.cache.normalized.Record.hasField (Showing top 3 results out of 315)

origin: apollographql/apollo-android

 @SuppressWarnings({"unchecked", "TypeParameterUnusedInFormals"})
 private <T> T fieldValue(Record record, ResponseField field) {
  String fieldKey = cacheKeyBuilder.build(field, variables);
  if (!record.hasField(fieldKey)) {
   throw new NullPointerException("Missing value: " + field.fieldName());
  }
  return (T) record.field(fieldKey);
 }
}
origin: com.amazonaws/aws-android-sdk-appsync-runtime

 @SuppressWarnings("unchecked") private <T> T fieldValue(Record record, ResponseField field) {
  String fieldKey = field.cacheKey(variables);
  if (!record.hasField(fieldKey)) {
   throw new NullPointerException("Missing value: " + field.fieldName());
  }
  return (T) record.field(fieldKey);
 }
}
origin: awslabs/aws-mobile-appsync-sdk-android

 @SuppressWarnings("unchecked") private <T> T fieldValue(Record record, ResponseField field) {
  String fieldKey = field.cacheKey(variables);
  if (!record.hasField(fieldKey)) {
   throw new NullPointerException("Missing value: " + field.fieldName());
  }
  return (T) record.field(fieldKey);
 }
}
com.apollographql.apollo.cache.normalizedRecordhasField

Popular methods of Record

  • builder
  • fields
  • key
  • field
  • mergeWith
  • sizeEstimateBytes
  • <init>
  • adjustSizeEstimate
  • clone
  • mutationId
  • toBuilder
  • findCacheReferences
  • toBuilder,
  • findCacheReferences,
  • keys,
  • referencedFields

Popular in Java

  • Reactive rest calls using spring rest template
  • findViewById (Activity)
  • getResourceAsStream (ClassLoader)
  • notifyDataSetChanged (ArrayAdapter)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • 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