Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package src.Utils;
- import java.io.Serializable;
- public class TypeID implements Serializable {
- private char TYPE;
- private int PROBE_ID;
- public TypeID(){
- this.TYPE = 'A';
- this.PROBE_ID = 0;
- }
- public TypeID(char TYPE, int PROBE_ID) {
- this.TYPE = TYPE;
- this.PROBE_ID = PROBE_ID;
- }
- public char getTYPE() {
- return TYPE;
- }
- public void setTYPE(char TYPE) {
- this.TYPE = TYPE;
- }
- public int getPROBE_ID() {
- return PROBE_ID;
- }
- public void setPROBE_ID(int PROBE_ID) {
- this.PROBE_ID = PROBE_ID;
- }
- @Override
- public boolean equals(Object o){
- if(o == null)
- return false;
- if(o == this)
- return true;
- if(!(o instanceof TypeID))
- return false;
- TypeID aux = (TypeID) o;
- return aux.getTYPE() == this.TYPE && aux.getPROBE_ID() == this.PROBE_ID;
- }
- @Override
- public String toString(){
- return this.PROBE_ID+ " - "+this.TYPE;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement