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

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

package cn.leancloud.ops;

import java.util.Map;

public final class NullOperation extends BaseOperation {
  public static final NullOperation gInstance = new NullOperation("nothing", null);

  public NullOperation(String key, Object value) {
    super("Null", key, value, false);
  }
  public Object apply(Object obj) {
    return obj;
  }
  @Override
  protected ObjectFieldOperation mergeWithPrevious(ObjectFieldOperation other) {
    return other;
  }
  public Map encode() {
    return null;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy