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

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageButton;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.viewbinding.ViewBinding;
import androidx.viewbinding.ViewBindings;
import com.example.projectbnspumkm.R;
import com.google.android.material.card.MaterialCardView;
import java.lang.NullPointerException;
import java.lang.Override;
import java.lang.String;

public final class ItemCartBinding implements ViewBinding {
  @NonNull
  private final MaterialCardView rootView;

  @NonNull
  public final ImageButton btnRemove;

  @NonNull
  public final TextView tvCartItemName;

  @NonNull
  public final TextView tvCartItemPrice;

  @NonNull
  public final TextView tvQuantity;

  private ItemCartBinding(@NonNull MaterialCardView rootView, @NonNull ImageButton btnRemove,
      @NonNull TextView tvCartItemName, @NonNull TextView tvCartItemPrice,
      @NonNull TextView tvQuantity) {
    this.rootView = rootView;
    this.btnRemove = btnRemove;
    this.tvCartItemName = tvCartItemName;
    this.tvCartItemPrice = tvCartItemPrice;
    this.tvQuantity = tvQuantity;
  }

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

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

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

  @NonNull
  public static ItemCartBinding 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.btn_remove;
      ImageButton btnRemove = ViewBindings.findChildViewById(rootView, id);
      if (btnRemove == null) {
        break missingId;
      }

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

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

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

      return new ItemCartBinding((MaterialCardView) rootView, btnRemove, tvCartItemName,
          tvCartItemPrice, tvQuantity);
    }
    String missingId = rootView.getResources().getResourceName(id);
    throw new NullPointerException("Missing required view with ID: ".concat(missingId));
  }
}
