1 package com.bluecove.emu.gui.model;
2
3 public class DatumNotification {
4
5 public static enum Type {REMOVED, ADDED, CHANGED};
6
7 private Type type;
8 private Datum datum;
9
10 public DatumNotification(Type type, Datum datum) {
11 this.type = type;
12 this.datum = datum;
13 }
14
15 public Type getType() {
16 return type;
17 }
18
19 public Datum getDatum() {
20 return datum;
21 }
22
23 @Override
24 public String toString() {
25 return "DatumNotification[type="+type+";datum="+datum+"]";
26 }
27 }