|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.harvard.deas.hyperenc.vsat.VSatPage
public class VSatPage
A page of data. Contains an array of bytes (the data), and an integer counter that can be used to count the number of times a page has been accessed. The data contained in a VSatPage is immutable, and the counter may only be incremented.
Constructor Summary | |
---|---|
VSatPage(byte[] data)
Creates a new VSatPage with the specified data. |
Method Summary | |
---|---|
int |
getCount()
Returns the current value of the counter. |
byte[] |
getData()
This page's data, as a byte array. |
void |
increment()
Adds 1 to the counter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VSatPage(byte[] data)
data
array
is copied into the constructed object; subsequent mutations of the passed
array do not affect this object.
data
- Data for this page.Method Detail |
---|
public byte[] getData()
public void increment()
public int getCount()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |