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

de.gesellix.docker.client.stack.Stack Maven / Gradle / Ivy

There is a newer version: 2024-09-15T19-40-00-groovy-4
Show newest version
package de.gesellix.docker.client.stack;

import java.util.Objects;

public class Stack {

  private String name;
  private int services;

  public String getName() {
    return name;
  }

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

  public int getServices() {
    return services;
  }

  public void setServices(int services) {
    this.services = services;
  }

  @Override
  public String toString() {
    return getName() + ": " + getServices();
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {return true;}
    if (o == null || getClass() != o.getClass()) {return false;}
    Stack stack = (Stack) o;
    return services == stack.services && Objects.equals(name, stack.name);
  }

  @Override
  public int hashCode() {
    return Objects.hash(name, services);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy