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

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

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

origin: apollographql/apollo-android

/**
 * @param otherRecord The record to merge into this record.
 * @return A set of field keys which have changed, or were added. A field key incorporates any GraphQL arguments in
 * addition to the field name.
 */
public Set<String> mergeWith(Record otherRecord) {
 Set<String> changedKeys = new HashSet<>();
 for (Map.Entry<String, Object> field : otherRecord.fields.entrySet()) {
  Object newFieldValue = field.getValue();
  boolean hasOldFieldValue = this.fields.containsKey(field.getKey());
  Object oldFieldValue = this.fields.get(field.getKey());
  if (!hasOldFieldValue
    || (oldFieldValue == null && newFieldValue != null)
    || (oldFieldValue != null && !oldFieldValue.equals(newFieldValue))) {
   this.fields.put(field.getKey(), newFieldValue);
   changedKeys.add(key() + "." + field.getKey());
   adjustSizeEstimate(newFieldValue, oldFieldValue);
  }
 }
 mutationId = otherRecord.mutationId;
 return changedKeys;
}
origin: com.amazonaws/aws-android-sdk-appsync-runtime

/**
 * @param otherRecord The record to merge into this record.
 * @return A set of field keys which have changed, or were added. A field key incorporates any GraphQL arguments in
 * addition to the field name.
 */
public Set<String> mergeWith(Record otherRecord) {
 Set<String> changedKeys = new HashSet<>();
 for (Map.Entry<String, Object> field : otherRecord.fields.entrySet()) {
  Object newFieldValue = field.getValue();
  boolean hasOldFieldValue = this.fields.containsKey(field.getKey());
  Object oldFieldValue = this.fields.get(field.getKey());
  if (!hasOldFieldValue
    || (oldFieldValue == null && newFieldValue != null)
    || (oldFieldValue != null && !oldFieldValue.equals(newFieldValue))) {
   this.fields.put(field.getKey(), newFieldValue);
   changedKeys.add(key() + "." + field.getKey());
   adjustSizeEstimate(newFieldValue, oldFieldValue);
  }
 }
 mutationId = otherRecord.mutationId;
 return changedKeys;
}
origin: awslabs/aws-mobile-appsync-sdk-android

/**
 * @param otherRecord The record to merge into this record.
 * @return A set of field keys which have changed, or were added. A field key incorporates any GraphQL arguments in
 * addition to the field name.
 */
public Set<String> mergeWith(Record otherRecord) {
 Set<String> changedKeys = new HashSet<>();
 for (Map.Entry<String, Object> field : otherRecord.fields.entrySet()) {
  Object newFieldValue = field.getValue();
  boolean hasOldFieldValue = this.fields.containsKey(field.getKey());
  Object oldFieldValue = this.fields.get(field.getKey());
  if (!hasOldFieldValue
    || (oldFieldValue == null && newFieldValue != null)
    || (oldFieldValue != null && !oldFieldValue.equals(newFieldValue))) {
   this.fields.put(field.getKey(), newFieldValue);
   changedKeys.add(key() + "." + field.getKey());
   adjustSizeEstimate(newFieldValue, oldFieldValue);
  }
 }
 mutationId = otherRecord.mutationId;
 return changedKeys;
}
com.apollographql.apollo.cache.normalizedRecordadjustSizeEstimate

Popular methods of Record

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

Popular in Java

  • Making http post requests using okhttp
  • getSupportFragmentManager (FragmentActivity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setRequestProperty (URLConnection)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Reference (javax.naming)
  • JList (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top Sublime Text plugins
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