~ubuntu-branches/ubuntu/oneiric/tuxguitar/oneiric

« back to all changes in this revision

Viewing changes to src/org/herac/tuxguitar/song/models/InstrumentString.java

  • Committer: Bazaar Package Importer
  • Author(s): Philippe Coval
  • Date: 2008-06-19 00:30:30 UTC
  • mto: (5.1.2 sid)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20080619003030-h719szrhsngou7c6
Tags: upstream-1.0
ImportĀ upstreamĀ versionĀ 1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Created on 30-nov-2005
3
 
 *
4
 
 * TODO To change the template for this generated file go to
5
 
 * Window - Preferences - Java - Code Style - Code Templates
6
 
 */
7
 
package org.herac.tuxguitar.song.models;
8
 
 
9
 
import java.io.Serializable;
10
 
 
11
 
/**
12
 
 * @author julian
13
 
 *
14
 
 * TODO To change the template for this generated type comment go to
15
 
 * Window - Preferences - Java - Code Style - Code Templates
16
 
 */
17
 
public class InstrumentString implements Serializable{
18
 
    private int number;
19
 
    private int value;
20
 
    
21
 
    public InstrumentString(int number,int value){
22
 
        this.number = number;
23
 
        this.value = value;
24
 
    }
25
 
    
26
 
    
27
 
    public int getNumber() {
28
 
        return number;
29
 
    }
30
 
    public int getValue() {
31
 
        return value;
32
 
    }
33
 
    
34
 
    
35
 
    
36
 
    public void setNumber(int number) {
37
 
        this.number = number;
38
 
    }
39
 
    public void setValue(int value) {
40
 
        this.value = value;
41
 
    }
42
 
    
43
 
    public boolean isEqual(InstrumentString string){
44
 
        return (this.getNumber() == string.getNumber() && this.getValue() == string.getValue());
45
 
    }
46
 
    
47
 
    public Object clone(){
48
 
        return new InstrumentString(getNumber(),getValue());
49
 
    }
50
 
}