Merge branch 'master' into lttng-kepler
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / internal / tmf / ui / parsers / custom / CustomEventContent.java
1 package org.eclipse.linuxtools.internal.tmf.ui.parsers.custom;
2
3 import org.eclipse.linuxtools.tmf.core.event.ITmfEventField;
4 import org.eclipse.linuxtools.tmf.core.event.TmfEventField;
5
6 public class CustomEventContent extends TmfEventField {
7
8 public CustomEventContent(CustomEvent parent, StringBuffer content) {
9 super(ITmfEventField.ROOT_FIELD_ID, content);
10 }
11
12 /* (non-Javadoc)
13 * @see java.lang.Object#hashCode()
14 */
15 @Override
16 public int hashCode() {
17 return super.hashCode();
18 }
19
20 /* (non-Javadoc)
21 * @see java.lang.Object#equals(java.lang.Object)
22 */
23 @Override
24 public boolean equals(Object obj) {
25 if (this == obj) {
26 return true;
27 }
28 if (!super.equals(obj)) {
29 return false;
30 }
31 if (!(obj instanceof CustomEventContent)) {
32 return false;
33 }
34 return true;
35 }
36
37 public void setFields(ITmfEventField[] fields) {
38 super.setValue(getValue(), fields);
39 }
40
41 }
This page took 0.035258 seconds and 5 git commands to generate.