~ubuntu-branches/ubuntu/trusty/eclipse-linuxtools/trusty

« back to all changes in this revision

Viewing changes to lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/internal/tmf/ui/parsers/custom/CustomEventContent.java

  • Committer: Package Import Robot
  • Author(s): tony mancill
  • Date: 2013-05-13 21:43:22 UTC
  • mfrom: (1.2.1) (2.1.2 experimental)
  • Revision ID: package-import@ubuntu.com-20130513214322-6frgd9du1n0w2uo7
Tags: 1.2.1-1
* Team upload.
* New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
 
}
 
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
}