aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/main/java/com/vaadin/tests/widgetset/client/SimpleTestBean.java
blob: ce22c1eea649514e9c95d691542f505e313ee318 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package com.vaadin.tests.widgetset.client;

import java.io.Serializable;

public class SimpleTestBean implements Serializable {
    private int value;

    public SimpleTestBean() {
        this(0);
    }

    public SimpleTestBean(int value) {
        this.value = value;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return "SimpleTestBean(" + value + ")";
    }

    @Override
    public int hashCode() {
        // Implement hash code to get consistent HashSet.toString
        return value;
    }
}