All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.leancloud.ops.ObjectFieldOperation Maven / Gradle / Ivy

package cn.leancloud.ops;

import cn.leancloud.LCObject;
import java.util.Map;

public interface ObjectFieldOperation {
  String getOperation();
  String getField();
  Object getValue();

  boolean checkCircleReference(Map markMap);

  /**
   * apply operation to object, in order to generate new attribute value.
   *
   * @param obj
   * @return
   */
  Object apply(Object obj);

  /**
   * merge with previous operations.
   *
   * @param previous
   * @return
   */
  ObjectFieldOperation merge(ObjectFieldOperation previous);

  /**
   * encode operation to commit into cloud server.
   *
   * @return
   */
  Map encode();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy