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

com.ing.baker.recipe.common.Ingredient.scala Maven / Gradle / Ivy

The newest version!
package com.ing.baker.recipe.common

import java.util.Objects

import com.ing.baker.types.Type

class Ingredient(val name: String,
                 val ingredientType: Type) {

  override def equals(obj: scala.Any): Boolean = obj match {
    case other: Ingredient => this.name == other.name && this.ingredientType == other.ingredientType
    case _ => false
  }

  override def hashCode(): Int = Objects.hash(name, ingredientType)

  override def toString: String = s"Ingredient($name, $ingredientType)"
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy