com.payu.menu.client.model.operation.AddIngredientByReferenceWithCount Maven / Gradle / Ivy
package com.payu.menu.client.model.operation;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.Objects;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Schema(description = "Add Ingredient by reference With count on repas operation")
public class AddIngredientByReferenceWithCount {
@Schema(description = "reference")
private String reference;
@Schema(description = "ingredient count")
private double ingredientCount;
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
AddIngredientByReferenceWithCount that = (AddIngredientByReferenceWithCount) o;
return Objects.equals(reference, that.reference);
}
}