// Path: sample/src/main/java/com/sys1yagi/fragmentcreator/model/Product.java
// public class Product {
// 
//     public int id;
// 
//     public String name;
// 
//     public int getId() {
//         return id;
//     }
// 
//     public void setId(int id) {
//         this.id = id;
//     }
// 
//     public String getName() {
//         return name;
//     }
// 
//     public void setName(String name) {
//         this.name = name;
//     }
// }
// 
// Path: sample/src/main/java/com/sys1yagi/fragmentcreator/tool/StringSerializer.java
// public class StringSerializer implements ArgsSerializer<Product, String> {
// 
//     @Override
//     public String serialize(Product product) {
//         return product.getId() + "," + product.getName();
//     }
// 
//     @Override
//     public Product deserialize(String str) {
//         String[] split = str.split(",");
//         Product product = new Product();
//         product.setId(Integer.parseInt(split[0]));
//         product.setName(split[1]);
//         return product;
//     }
// }


import com.sys1yagi.fragmentcreator.R;
import com.sys1yagi.fragmentcreator.annotation.Args;
import com.sys1yagi.fragmentcreator.annotation.FragmentCreator;
import com.sys1yagi.fragmentcreator.annotation.Serializer;
import com.sys1yagi.fragmentcreator.model.Product;
import com.sys1yagi.fragmentcreator.tool.StringSerializer;
import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
package com.sys1yagi.fragmentcreator.fragment;




@FragmentCreator
public class TypeSerializerFragment extends Fragment {

    @Args
    @Serializer(to = String.class, serializer = StringSerializer.class)
// Path: sample/src/main/java/com/sys1yagi/fragmentcreator/model/Product.java
// public class Product {
// 
//     public int id;
// 
//     public String name;
// 
//     public int getId() {
//         return id;
//     }
// 
//     public void setId(int id) {
//         this.id = id;
//     }
// 
//     public String getName() {
//         return name;
//     }
// 
//     public void setName(String name) {
//         this.name = name;
//     }
// }
// 
// Path: sample/src/main/java/com/sys1yagi/fragmentcreator/tool/StringSerializer.java
// public class StringSerializer implements ArgsSerializer<Product, String> {
// 
//     @Override
//     public String serialize(Product product) {
//         return product.getId() + "," + product.getName();
//     }
// 
//     @Override
//     public Product deserialize(String str) {
//         String[] split = str.split(",");
//         Product product = new Product();
//         product.setId(Integer.parseInt(split[0]));
//         product.setName(split[1]);
//         return product;
//     }
// }


// Path: sample/src/main/java/com/sys1yagi/fragmentcreator/fragment/TypeSerializerFragment.java
import com.sys1yagi.fragmentcreator.R;
import com.sys1yagi.fragmentcreator.annotation.Args;
import com.sys1yagi.fragmentcreator.annotation.FragmentCreator;
import com.sys1yagi.fragmentcreator.annotation.Serializer;
import com.sys1yagi.fragmentcreator.model.Product;
import com.sys1yagi.fragmentcreator.tool.StringSerializer;
import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

package com.sys1yagi.fragmentcreator.fragment;




@FragmentCreator
public class TypeSerializerFragment extends Fragment {

    @Args
    @Serializer(to = String.class, serializer = StringSerializer.class)
    Product product;