public class StatResult
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected byte |
flags |
protected WSStats[] |
stats |
Constructor and Description |
---|
StatResult()
Creates a new empty StatResult with no errors
|
Modifier and Type | Method and Description |
---|---|
boolean |
getEndOfFile()
Returns the EndOfFile flag
|
int |
getLength()
The number of Stats in this result
|
WSStats |
getStat(int i)
Get the requested Stat object
|
WSStats[] |
getStatsArray()
Get the entire array of Stats
|
long |
getTime(int i)
Get the timestamp for the specified Stats
|
long[] |
getTimeArray()
Get the entire array of timestamps
|
boolean |
getUpdateAvailable()
Returns the update available
|
void |
setEndOfFile(boolean b)
Sets the boolean endOfFile
|
void |
setStats(WSStats[] stats)
Sets the Stats array associated with this StatResult
|
void |
setTime(long[] time)
Sets the timestamp array associated with this StatResult
|
void |
setUpdateAvailable(boolean update)
Sets the update available byte of the StatResult
|
java.lang.String |
toString()
Returns a string representation of StatResult
|
protected byte flags
protected WSStats[] stats
public void setUpdateAvailable(boolean update)
update
- public void setStats(WSStats[] stats)
stats
- public void setTime(long[] time)
time
- public void setEndOfFile(boolean b)
b
- public boolean getEndOfFile()
public boolean getUpdateAvailable()
public int getLength()
public WSStats getStat(int i)
i
- public WSStats[] getStatsArray()
public long getTime(int i)
i
- public long[] getTimeArray()
public java.lang.String toString()
toString
in class java.lang.Object