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

com.weaverplatform.protocol.model.CreateNodeOperation Maven / Gradle / Ivy

There is a newer version: 3.7.2
Show newest version
package com.weaverplatform.protocol.model;

import java.util.Objects;

/**
 * @author Mohamad Alamili
 */
public class CreateNodeOperation extends WriteOperation {

  private String createId;

  public CreateNodeOperation(String id) {
    super(id);
  }

  public CreateNodeOperation(String id, Boolean upsert) {
    super(id, upsert);
  }

  public WriteOperationAction getAction(){
    return WriteOperationAction.CREATE_NODE;
  }

  @Override
  public boolean equals(Object obj) {
    if(!(obj instanceof CreateNodeOperation)) {
      return false;
    }
    CreateNodeOperation other = (CreateNodeOperation) obj;
    return Objects.equals(getId(), other.getId())
      && Objects.equals(getGraph(), other.getGraph());
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy