package com.lifeofcoding.cacheutilslibrary_sample;

/**
 * Created by Wesley Lin on 9/6/15.
 */
public class MyClass {
    private String text;
    private int id;
    private boolean isIdZero;

    public MyClass(String text, int id) {
        this.text = text;
        this.id = id;
        this.isIdZero = id == 0;
    }

    public String getText() {
        return text;
    }

    public int getId() {
        return id;
    }

    public boolean isIdZero() {
        return isIdZero;
    }

    public void setText(String text) {
        this.text = text;
    }

    public void setId(int id) {
        this.id = id;
    }

    public void setIsIdZero(boolean isIdZero) {
        this.isIdZero = isIdZero;
    }

    @Override
    public String toString() {
        return "{text: " + text + ", id: " + id + ", isIdZero: " + isIdZero + "}";
    }

    public static MyClass SAMPLE_MYCLASS_1 = new MyClass("MyClass Smaple1", 0);
    public static MyClass SAMPLE_MYCLASS_2 = new MyClass("MyClass Smaple2", 1);
    public static MyClass SAMPLE_MYCLASS_3 = new MyClass("MyClass Smaple3", 1);
}

@@ -915,18 +915,18 @@
 yClass S
-m
 a
+m
 ple1%22, 0
@@ -995,18 +995,18 @@
 yClass S
-m
 a
+m
 ple2%22, 1
@@ -1079,10 +1079,10 @@
 ss S
-m
 a
+m
 ple3

Update MyClass.java