// Generated by view binder compiler. Do not edit!
package com.example.wadi.databinding;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.cardview.widget.CardView;
import androidx.viewbinding.ViewBinding;
import androidx.viewbinding.ViewBindings;
import com.example.wadi.R;
import java.lang.NullPointerException;
import java.lang.Override;
import java.lang.String;

public final class ListItem2Binding implements ViewBinding {
  @NonNull
  private final CardView rootView;

  @NonNull
  public final TextView calories;

  @NonNull
  public final TextView fruitName;

  @NonNull
  public final ImageView listImage;

  @NonNull
  public final TextView listName;

  @NonNull
  public final TextView listTime;

  private ListItem2Binding(@NonNull CardView rootView, @NonNull TextView calories,
      @NonNull TextView fruitName, @NonNull ImageView listImage, @NonNull TextView listName,
      @NonNull TextView listTime) {
    this.rootView = rootView;
    this.calories = calories;
    this.fruitName = fruitName;
    this.listImage = listImage;
    this.listName = listName;
    this.listTime = listTime;
  }

  @Override
  @NonNull
  public CardView getRoot() {
    return rootView;
  }

  @NonNull
  public static ListItem2Binding inflate(@NonNull LayoutInflater inflater) {
    return inflate(inflater, null, false);
  }

  @NonNull
  public static ListItem2Binding inflate(@NonNull LayoutInflater inflater,
      @Nullable ViewGroup parent, boolean attachToParent) {
    View root = inflater.inflate(R.layout.list_item2, parent, false);
    if (attachToParent) {
      parent.addView(root);
    }
    return bind(root);
  }

  @NonNull
  public static ListItem2Binding bind(@NonNull View rootView) {
    // The body of this method is generated in a way you would not otherwise write.
    // This is done to optimize the compiled bytecode for size and performance.
    int id;
    missingId: {
      id = R.id.calories;
      TextView calories = ViewBindings.findChildViewById(rootView, id);
      if (calories == null) {
        break missingId;
      }

      id = R.id.fruitName;
      TextView fruitName = ViewBindings.findChildViewById(rootView, id);
      if (fruitName == null) {
        break missingId;
      }

      id = R.id.listImage;
      ImageView listImage = ViewBindings.findChildViewById(rootView, id);
      if (listImage == null) {
        break missingId;
      }

      id = R.id.listName;
      TextView listName = ViewBindings.findChildViewById(rootView, id);
      if (listName == null) {
        break missingId;
      }

      id = R.id.listTime;
      TextView listTime = ViewBindings.findChildViewById(rootView, id);
      if (listTime == null) {
        break missingId;
      }

      return new ListItem2Binding((CardView) rootView, calories, fruitName, listImage, listName,
          listTime);
    }
    String missingId = rootView.getResources().getResourceName(id);
    throw new NullPointerException("Missing required view with ID: ".concat(missingId));
  }
}
