You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
package com.example.drink_order_system ;
import androidx.annotation.NonNull ;
import androidx.annotation.Nullable ;
import androidx.recyclerview.widget.RecyclerView ;
public class Flavor {
private String size ;
private String sugar ;
private String temperature ;
Flavor ( String size , String sugar , String temperature )
{
this . size = size ;
this . sugar = sugar ;
this . temperature = temperature ;
}
@Override
public String toString ( )
{
String s = size + ", " + sugar + ", " + temperature ;
return s ;
}
@Override
public boolean equals ( @Nullable Object obj ) {
return this . toString ( ) . equals ( ( ( Flavor ) obj ) . toString ( ) ) ;
}
public String getSize ( ) {
return size ;
}
}