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

io.camunda.operate.entities.listview.ListViewJoinRelation Maven / Gradle / Ivy

/*
 * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under
 * one or more contributor license agreements. See the NOTICE file distributed
 * with this work for additional information regarding copyright ownership.
 * Licensed under the Camunda License 1.0. You may not use this file
 * except in compliance with the Camunda License 1.0.
 */
package io.camunda.operate.entities.listview;

public class ListViewJoinRelation {

  private String name;

  private Long parent;

  public ListViewJoinRelation() {}

  public ListViewJoinRelation(String name) {

    this.name = name;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public Long getParent() {
    return parent;
  }

  public void setParent(Long parent) {
    this.parent = parent;
  }

  @Override
  public int hashCode() {
    int result = name != null ? name.hashCode() : 0;
    result = 31 * result + (parent != null ? parent.hashCode() : 0);
    return result;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }

    final ListViewJoinRelation that = (ListViewJoinRelation) o;

    if (name != null ? !name.equals(that.name) : that.name != null) {
      return false;
    }
    return parent != null ? parent.equals(that.parent) : that.parent == null;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy