vSphere Client SDK API Documentation : version 5.5.0.1300321

com.vmware.vise.search
Class ValueEx<T>

java.lang.Object
  extended by com.vmware.vise.search.ValueEx<T>

public class ValueEx<T>
extends Object

A combo containing a value along with some exceptions that may have occurred while calculating the value.


Constructor Summary
ValueEx(T value)
          Create an instance of this class that doesn't contain any exceptions, only a value.
ValueEx(T value, Collection<? extends Exception> exceptions)
          Create an instance of this class.
ValueEx(T value, Exception exception)
          Create an instance of this class that contains a value and a single exception.
 
Method Summary
 Collection<? extends Exception> getExceptions()
           
 T getValue()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueEx

public ValueEx(T value)
Create an instance of this class that doesn't contain any exceptions, only a value.

Parameters:
value - the value of some computation

ValueEx

public ValueEx(T value,
               Exception exception)
Create an instance of this class that contains a value and a single exception.

Parameters:
value - the value of some computation
exception - an exception that occurred while computing the value

ValueEx

public ValueEx(T value,
               Collection<? extends Exception> exceptions)
Create an instance of this class.

Parameters:
value - the value of some computation
exceptions - any exceptions that may have occurred while computing the value; can be null
Method Detail

getValue

public T getValue()
Returns:
the value that was set through the constructor

getExceptions

public Collection<? extends Exception> getExceptions()
Returns:
any exceptions that may have occurred while computing the value; will never be null; if empty, then no exceptions occurred
See Also:
getValue()

vSphere Client SDK API Documentation : version 5.5.0.1300321

Copyright @ 2012 VMware, Inc. All rights reserved.