| 1 55 package org.lateralnz.messaging; 56 57 import java.io.Serializable ; 58 59 import org.lateralnz.common.util.Constants; 60 61 66 public class Message implements Serializable , Constants { 67 private int type; private String group; private Object value; 71 public Message(int type, String group, Object value) { 72 this.type = type; 73 this.group = group; 74 this.value = value; 75 } 76 77 public int getType() { 78 return type; 79 } 80 81 public void setType(int type) { 82 this.type = type; 83 } 84 85 public String getGroup() { 86 return group; 87 } 88 89 public Object getValue() { 90 return value; 91 } 92 93 public String toString() { 94 return getType() + COMMA + getGroup() + COMMA + getValue().toString(); 95 } 96 } 97 | Popular Tags |