net.java.properties
Class ResultList<T>

java.lang.Object
  extended by net.java.properties.ResultList<T>

public class ResultList<T>
extends java.lang.Object

A number of results.


Constructor Summary
ResultList(int size)
           
 
Method Summary
 void addResult(Result<T> result)
          Adds a result to the list.
 boolean allOk()
          Returns if all results in the list was either Result.Type.OK or Result.Type.OK_WITH_STATUS.
 boolean changed()
          Returns if any of the results was considered a change.
 java.util.List<Result<T>> getResults()
          Returns the results as a non-modifiable list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultList

public ResultList(int size)
Method Detail

addResult

public void addResult(Result<T> result)
Adds a result to the list.

Parameters:
result - The result to add. Not null.

allOk

public boolean allOk()
Returns if all results in the list was either Result.Type.OK or Result.Type.OK_WITH_STATUS.

Returns:
If all results in the list was either Result.Type.OK or Result.Type.OK_WITH_STATUS.

changed

public boolean changed()
Returns if any of the results was considered a change.

Returns:
If any of the results was considered a change.

getResults

public java.util.List<Result<T>> getResults()
Returns the results as a non-modifiable list.

Returns:
The results as a non-modifiable list. Never null.


Copyright © 2007 MiG InfoCom AB. All Rights Reserved.