projects
/
iotcloud.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add java files
[iotcloud.git]
/
src
/
java
/
iotcloud
/
Slot.java
1
package iotcloud;
2
import java.util.Vector;
3
4
class Slot {
5
long seqnum;
6
byte[] bytes;
7
Vector<Entry> entries;
8
9
Slot() {
10
entries=new Vector();
11
}
12
13
Slot(long _seqnum, byte[] _bytes) {
14
this();
15
seqnum=_seqnum;
16
bytes=_bytes;
17
}
18
19
long getSequenceNumber() {
20
return seqnum;
21
}
22
23
byte[] getBytes() {
24
return bytes;
25
}
26
27
public String toString() {
28
return "<"+getSequenceNumber()+", "+new String(getBytes())+">";
29
}
30
}