You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

SimpleTestBean.java 691B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. @VaadinApache2LicenseForJavaFiles@
  3. */
  4. package com.vaadin.tests.widgetset.client;
  5. import java.io.Serializable;
  6. public class SimpleTestBean implements Serializable {
  7. private int value;
  8. public SimpleTestBean() {
  9. this(0);
  10. }
  11. public SimpleTestBean(int value) {
  12. this.value = value;
  13. }
  14. public int getValue() {
  15. return value;
  16. }
  17. public void setValue(int value) {
  18. this.value = value;
  19. }
  20. @Override
  21. public String toString() {
  22. return "SimpleTestBean(" + value + ")";
  23. }
  24. @Override
  25. public int hashCode() {
  26. // Implement hash code to get consistent HashSet.toString
  27. return value;
  28. }
  29. }