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

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

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

import java.util.Objects;

public class RemoveFromSetOperation extends WriteOperation {

  private String set;

  public RemoveFromSetOperation(String id, String set) {
    super(id);
    this.set = set;
  }

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

  public String getSet() {
    return set;
  }

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

  @Override
  public int hashCode() {
    return Objects.hash(super.hashCode(), getSet());
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy