-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathData.java
More file actions
45 lines (35 loc) · 892 Bytes
/
Data.java
File metadata and controls
45 lines (35 loc) · 892 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
Data.java
Written by George Brinzea
Used to test sending data to and from a server
Not a part of the final project build
*/
package com.purdue.LawsonNavigator;
import java.io.Serializable;
public class Data implements Serializable{
private int value1;
private boolean value2;
private char value3;
public Data(int v1, boolean v2, char v3){
value1 = v1;
value2 = v2;
value3 = v3;
}
public int getV1(){
return value1;
}
public boolean getV2(){
return value2;
}
public char getV3(){
return value3;
}
/*private void writeObject(java.io.ObjectOutputStream out) throws IOException{
out.defaultWriteObject();
}
private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException{
in.defaultReadObject();
}
private void readObjectNoData() throws ObjectStreamException{
}*/
}